aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-12-11 08:22:18 +0000
committerStephen Blott2016-12-11 08:22:18 +0000
commit1664a02c02be27a824b19633740a23ec01573c77 (patch)
treeb7ba7adf347c0b347eec0753717f4bbe746d6537 /background_scripts/main.coffee
parentbd06c7ccfbfcf36e6d15fba72b7af90254b05da2 (diff)
downloadvimium-1664a02c02be27a824b19633740a23ec01573c77.tar.bz2
Rework key-mapping parsing.
There are two changes here: 1. Treat built-in key mappings and custom key mappings in the same way; that is, we prepend the built-in mappings to the custom mappings and then parse them all together. This results in a number of simplifications due to previous duplication of logic and the elimination of special cases. 2. Parse key mappings in reverse order, so we can just ignore key mappings after first encountering a key sequence. So, `map`, `unmap` and `unmapAll` are all treated in more or less the same way. This is preparatory to reworking some aspects of the help page. In particular, regardless of the order of maps, unmaps, etc., this approach makes it easier to find the mapping in effect for a key sequence (and be able to recreate the order of those mappings).
Diffstat (limited to 'background_scripts/main.coffee')
0 files changed, 0 insertions, 0 deletions