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

This commit is contained in:
Alexey Potsetsuev
2025-10-08 16:07:32 +08:00
committed by GitHub
parent 254e6e3b8e
commit 6fd0ab1027
@@ -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;
}