FakeVim: Fix caps lock in macros.

This fixes the bug that while recording a macrom, hitting caps lock
(scroll lock, num lock) inserts some key into the buffer (for caps '$')
so when you replay the macro you get incorrect output.

Other keys that are not in vimKeyNames may behave similarly but It is
important that macros support those three (especially caps lock).

Change-Id: I2854266f86a22e9d38fb1c6c5d923b11a56a5995
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Jakub Golebiewski
2015-09-14 21:58:17 +02:00
committed by hjk
parent 6e8a72b17f
commit 0b5b7ef67a

View File

@@ -856,7 +856,11 @@ static const QMap<QString, int> &vimKeyNames()
{ _("KDIVIDE"), Key_Slash },
{ _("KMULTIPLY"), Key_Asterisk },
{ _("KENTER"), Key_Enter },
{ _("KPOINT"), Key_Period }
{ _("KPOINT"), Key_Period },
{ _("CAPS"), Key_CapsLock },
{ _("NUM"), Key_NumLock },
{ _("SCROLL"), Key_ScrollLock }
};
return k;