File: hints.js

package info (click to toggle)
conkeror 0.9.2%2Bgit100804-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,680 kB
  • ctags: 1,182
  • sloc: sh: 547; ansic: 272; xml: 107; makefile: 79
file content (28 lines) | stat: -rw-r--r-- 1,095 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
 * (C) Copyright 2007-2008 Jeremy Maitin-Shepard
 * (C) Copyright 2009-2010 John J. Foerch
 *
 * Use, modification, and distribution are subject to the terms specified in the
 * COPYING file.
**/

define_fallthrough(hint_keymap, match_any_unmodified_character);

define_key(hint_keymap, match_any_unmodified_character, null, $fallthrough);

for (let i = 0; i <= 9; ++i)
    define_key(hint_keymap, String(i), "hints-handle-number");

define_key(hint_keymap, "back_space", "hints-backspace");
define_key(hint_keymap, "tab", "hints-next");
define_key(hint_keymap, "down", "hints-next");
define_key(hint_keymap, "C-s", "hints-next");
define_key(hint_keymap, "C-n", "hints-next");
define_key(hint_keymap, "S-tab", "hints-previous");
define_key(hint_keymap, "up", "hints-previous");
define_key(hint_keymap, "C-r", "hints-previous");
define_key(hint_keymap, "C-p", "hints-previous");
define_key(hint_keymap, "escape", "minibuffer-abort");
define_key(hint_keymap, "M-escape", "minibuffer-abort");
define_key(hint_keymap, "C-g", "minibuffer-abort");
define_key(hint_keymap, "return", "hints-exit");