Update useKeyboardShortcuts.tsx (#1181)
This commit is contained in:
parent
784b4503aa
commit
9967b281be
1 changed files with 0 additions and 1 deletions
|
@ -10,7 +10,6 @@ export function useKeyboardShortcuts(ref: React.RefObject<HTMLDivElement>) {
|
|||
(ignoreMenus = false) => {
|
||||
const elm = ref.current
|
||||
if (ignoreMenus && (app.isMenuOpen || app.settings.keepStyleMenuOpen)) return true
|
||||
elm?.focus()
|
||||
return elm && (document.activeElement === elm || elm.contains(document.activeElement))
|
||||
},
|
||||
[ref]
|
||||
|
|
Loading…
Reference in a new issue