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:
parent
eb11977be2
commit
40f2977030
1 changed files with 9 additions and 0 deletions
|
@ -570,6 +570,15 @@ top down before the key bindings are parsed.
|
|||
</mod-shift>
|
||||
</key>
|
||||
|
||||
<key n="58">
|
||||
<name>:</name>
|
||||
<desc>Start multikey command</desc>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>multikey.start()</script>
|
||||
</binding>
|
||||
</key>
|
||||
|
||||
<key n="63">
|
||||
<name>?</name>
|
||||
<desc>Show help dialog</desc>
|
||||
|
|
Loading…
Add table
Reference in a new issue