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

add menu mode

This commit is contained in:
Doug Kearns
2007-08-27 14:26:43 +00:00
parent 626d8472d9
commit bf881b0292
2 changed files with 52 additions and 1 deletions

View File

@@ -49,7 +49,8 @@ const vimperator = (function() //{{{
ESCAPE_ALL_KEYS: 1 << 15,
QUICK_HINT: 1 << 16,
EXTENDED_HINT: 1 << 17,
ALWAYS_HINT: 1 << 18
ALWAYS_HINT: 1 << 18,
MENU: 1 << 19 // a popupmenu is active
}
var mode_messages = {};
@@ -63,6 +64,7 @@ const vimperator = (function() //{{{
mode_messages[modes.QUICK_HINT] = "quick";
mode_messages[modes.EXTENDED_HINT] = "extended";
mode_messages[modes.ALWAYS_HINT] = "always";
mode_messages[modes.MENU] = "menu"; // TODO: desirable?
var mode = modes.NORMAL;
var extended_mode = modes.NONE;