From f4893cd20d1d9db0b29b189f666124d120b0affe Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Thu, 11 Jul 2019 19:50:35 +0000 Subject: [PATCH] Alias ` to Escape for the ipad hardware keyboard --- Editor.js | 1 + List.js | 1 + 2 files changed, 2 insertions(+) diff --git a/Editor.js b/Editor.js index e1c49c5..e49feb9 100644 --- a/Editor.js +++ b/Editor.js @@ -175,6 +175,7 @@ class Editor extends List { return; case 'Escape': + case '`': if (!this.container_.parentElement.xArchObj) { for (let entry of this.queryEntries('.highlight')) { entry.getElement().classList.toggle('highlight', false); diff --git a/List.js b/List.js index 32a921a..10cf89f 100644 --- a/List.js +++ b/List.js @@ -125,6 +125,7 @@ class List { case 'Escape': case 'ArrowLeft': case 'h': + case '`': if (this.container_.parentElement.xArchObj) { this.container_.parentElement.focus(); }