dbeaver/pro#7111 fix: doubled hot keys handler (#3808)

This commit is contained in:
Alexey Potsetsuev
2025-10-08 16:07:27 +08:00
committed by GitHub
parent 68758381aa
commit 7419bd1412
@@ -45,7 +45,7 @@ export const CaptureView = observer<React.PropsWithChildren<ICaptureViewProps>>(
useHotkeys(
keys,
(event, handler) => {
if (!state.reference?.contains(document.activeElement)) {
if (!event.isTrusted || !state.reference?.contains(document.activeElement)) {
return;
}