Fix find/replace CM styling

This commit is contained in:
Gregory Schier
2024-02-26 17:07:09 -08:00
parent 59d532ed4d
commit 1efd0852ef
7 changed files with 50 additions and 32 deletions

View File

@@ -20,7 +20,7 @@ if (osType !== 'Darwin') {
const settings = await getSettings();
setAppearanceOnDocument(settings.appearance as Appearance);
document.addEventListener('keydown', (e) => {
window.addEventListener('keypress', (e) => {
// Don't go back in history on backspace
if (e.key === 'Backspace') e.preventDefault();
});