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