1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-30 17:45:48 +01:00

Fix mappings when mode.addMode used after initialization.

--HG--
extra : rebase_source : 03fcc73999f01ef1987cf22c0061fbcfebf0bc23
This commit is contained in:
Kris Maglione
2009-10-08 15:40:18 -04:00
parent 271e4fdfc1
commit 8292f6384c
2 changed files with 11 additions and 0 deletions

View File

@@ -355,6 +355,15 @@ function Mappings() //{{{
*/
getUserIterator: function (mode) mappingsIterator(mode, user),
addMode: function (mode)
{
if (!(mode in user || mode in main))
{
main[mode] = [];
user[mode] = [];
}
},
/**
* Adds a new default key mapping.
*