ignored ignoreFormElements for release

This commit is contained in:
sguenter 2023-10-23 14:59:56 +02:00
parent b085c2dd97
commit b711af7c31

View File

@ -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);