ignored ignoreFormElements for release
This commit is contained in:
parent
b085c2dd97
commit
b711af7c31
@ -121,10 +121,9 @@ export class HotkeyManager<HotkeyConfig extends Record<string, HotkeyEntry<strin
|
||||
this.checkHotkeys(e);
|
||||
});
|
||||
window.addEventListener('keyup', (e) => {
|
||||
// TODO check if meta key is still working correctly
|
||||
if (this.ignoreFormElements && HotkeyManager.isFormElement(e.target)) {
|
||||
return;
|
||||
}
|
||||
// Ignore the "ignoreFormFields" setting for keyup
|
||||
// Release should always trigger or else one hotkey can create form-field which is
|
||||
// focused and then it will never be released
|
||||
|
||||
if (e.key === 'Meta') {
|
||||
this.clearMap(e);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user