vpat 44 followup: no escape handler in editors (#4776)

This commit is contained in:
abaevbog 2024-10-22 11:21:50 -07:00 committed by GitHub
parent 7c9a0ac624
commit 8a6bc2cb10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -942,13 +942,6 @@ var Scaffold = new function () {
}
}
}, true);
// On Escape, focus the selected tab. Use non-capturing listener to not
// do anything on Escape events handled by the editor (e.g. to dismiss autocomplete popup)
doc.addEventListener("keydown", (event) => {
if (event.key == "Escape") {
tabbox.selectedTab.focus();
}
});
};