mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
This commit is contained in:
co-authored by
Daria Marutkina
parent
0ae505fd32
commit
5d90858fa3
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* CloudBeaver - Cloud Database Manager
|
||||
* Copyright (C) 2020-2024 DBeaver Corp and others
|
||||
* Copyright (C) 2020-2025 DBeaver Corp and others
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0.
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -72,8 +72,9 @@ export const CaptureView = observer<React.PropsWithChildren<ICaptureViewProps>>(
|
||||
return isObjectsEqual(hotkey, handler);
|
||||
});
|
||||
});
|
||||
const isAppliedInSelectedScope = Boolean(state.reference?.contains(document.activeElement));
|
||||
|
||||
return action?.binding?.binding.preventDefault === true;
|
||||
return isAppliedInSelectedScope && action?.binding?.binding.preventDefault === true;
|
||||
},
|
||||
enableOnContentEditable: true,
|
||||
},
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* CloudBeaver - Cloud Database Manager
|
||||
* Copyright (C) 2020-2024 DBeaver Corp and others
|
||||
* Copyright (C) 2020-2025 DBeaver Corp and others
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0.
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
Reference in New Issue
Block a user