1
0
Fork 0

start vi-like multiple-key commands with ':'

Note that this key does sometimes fail to work. This is caused by the
way our keyboard works ATM. On an (US)English keyboard : and ; are on
the same key. If you do  Press-Shift >> Press-: >> Release-Shift -> Release-:
then not the ':' is released, but the ';'. The ':' remains registered as
pressed, so the next press fails. Another press restores the function.
We fixed this for the letter keys, as it is safe to assume that 'a' and
'A' are on the same key. Unfortunately, we can't make such assumptions
for non-letter keys. We should really track the HW-key numbers, not
the symbols printed on them!
This commit is contained in:
mfranz 2008-09-28 20:33:30 +00:00
parent eb11977be2
commit 40f2977030

View file

@ -570,6 +570,15 @@ top down before the key bindings are parsed.
</mod-shift> </mod-shift>
</key> </key>
<key n="58">
<name>:</name>
<desc>Start multikey command</desc>
<binding>
<command>nasal</command>
<script>multikey.start()</script>
</binding>
</key>
<key n="63"> <key n="63">
<name>?</name> <name>?</name>
<desc>Show help dialog</desc> <desc>Show help dialog</desc>