From 395008d06d393dd2bf182aa16930a954ce5970e6 Mon Sep 17 00:00:00 2001 From: McMatts Date: Mon, 4 Mar 2019 18:59:06 +0000 Subject: [PATCH] Allow hypen in tag names with Firefox When keycodes are different across browsers. :| --- gui/app/components/document/settings-tag.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/app/components/document/settings-tag.js b/gui/app/components/document/settings-tag.js index dd4b7dec..35c86cd9 100644 --- a/gui/app/components/document/settings-tag.js +++ b/gui/app/components/document/settings-tag.js @@ -52,7 +52,7 @@ export default Component.extend(Notifier, { return true; } - if (e.shiftKey) { + if (e.shiftKey) { return false; } @@ -65,6 +65,7 @@ export default Component.extend(Notifier, { e.which === 40 || e.which === 45 || e.which === 189 || + e.which === 173 || e.which === 8 || e.which === 127 || (e.which >= 65 && e.which <= 90) ||