Revamp of URL opening/following system
[conkeror.git] / modules / bindings / default / browser_elements.js
blobedb10eb68b75ce3e799b6e14526ec63fe302e6d9
1 require("browser_elements.js");
3 var browser_elements_keymap = new keymap();
4 bind_universal_argument(browser_elements_keymap, "C-u");
6 define_key(browser_buffer_normal_keymap, "i", browser_elements_keymap,
7            $hook = hints_object_class_selector("images"));
9 define_key(browser_buffer_normal_keymap, "n", browser_elements_keymap,
10            $hook = hints_object_class_selector("links"));
12 define_key(browser_buffer_normal_keymap, "m", browser_elements_keymap,
13            $hook = hints_object_class_selector("frames"));
15 define_key(browser_buffer_normal_keymap, "S-8 i", browser_elements_keymap,
16            $hook = hints_object_class_selector("images"));
18 define_key(browser_buffer_normal_keymap, "S-8 n", browser_elements_keymap,
19            $hook = hints_object_class_selector("links"));
21 define_key(browser_buffer_normal_keymap, "S-8 m", browser_elements_keymap,
22            $hook = hints_object_class_selector("frames"));
24 define_key(browser_buffer_normal_keymap, "S-8 M", browser_elements_keymap,
25            $hook = hints_object_class_selector("mathml"));
28 function bind_element_operations(keymap) {
29     define_key(keymap, "f", "browser-element-follow");
30     define_key(keymap, ";", "browser-element-focus");
31     define_key(keymap, "t", "browser-element-follow-top");
32     define_key(keymap, "s", "browser-element-save");
33     define_key(keymap, "c", "browser-element-copy");
34     define_key(keymap, "back_slash", "browser-element-view-source");
37 bind_element_operations(browser_buffer_normal_keymap);
38 bind_element_operations(browser_elements_keymap);