Alias ` to Escape for the ipad hardware keyboard

This commit is contained in:
Ian Gulliver
2019-07-11 19:50:35 +00:00
parent f3e93176b9
commit f4893cd20d
2 changed files with 2 additions and 0 deletions

View File

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

View File

@@ -125,6 +125,7 @@ class List {
case 'Escape':
case 'ArrowLeft':
case 'h':
case '`':
if (this.container_.parentElement.xArchObj) {
this.container_.parentElement.focus();
}