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);
|
this.checkHotkeys(e);
|
||||||
});
|
});
|
||||||
window.addEventListener('keyup', (e) => {
|
window.addEventListener('keyup', (e) => {
|
||||||
// TODO check if meta key is still working correctly
|
// Ignore the "ignoreFormFields" setting for keyup
|
||||||
if (this.ignoreFormElements && HotkeyManager.isFormElement(e.target)) {
|
// Release should always trigger or else one hotkey can create form-field which is
|
||||||
return;
|
// focused and then it will never be released
|
||||||
}
|
|
||||||
|
|
||||||
if (e.key === 'Meta') {
|
if (e.key === 'Meta') {
|
||||||
this.clearMap(e);
|
this.clearMap(e);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user