From 66b11f98f480bbd83cb2cf720e219d0df8203f80 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sat, 14 Oct 2017 12:38:26 +0100 Subject: Allow to be mapped as a regular command. If map someCommand is configured, then the hardwired `` meaning `Escape` behaviour is disabled. Users who want to map `` probably *never* use it as `Escape`. Fixes #2722. --- background_scripts/commands.coffee | 3 +++ 1 file changed, 3 insertions(+) (limited to 'background_scripts') diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index cda036e6..7e171d31 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -113,6 +113,9 @@ Commands = # We don't need these properties in the content scripts. delete currentMapping[key][prop] for prop in ["keySequence", "description"] chrome.storage.local.set normalModeKeyStateMapping: keyStateMapping + # Inform `KeyboardUtils.isEscape()` whether `` should be interpreted as `Escape` (which it is by + # default). + chrome.storage.local.set useVimLikeEscape: "" not of keyStateMapping # Build the "helpPageData" data structure which the help page needs and place it in Chrome storage. prepareHelpPageData: -> -- cgit v1.2.3