define_keymaps_page_mode: new kind of page-mode
[conkeror.git] / modules / page-modes / google-calendar.js
blob02dfbf860b58ebe4823584014f83a3289127330a
1 /**
2  * (C) Copyright 2008 Nelson Elhage
3  * (C) Copyright 2009-2010 John J. Foerch
4  *
5  * Use, modification, and distribution are subject to the terms specified in the
6  * COPYING file.
7 **/
9 in_module(null);
11 require("content-buffer.js");
13 define_keymap("google_calendar_keymap", $display_name = "google-calendar");
15 define_key(google_calendar_keymap, "c", null, $fallthrough);
17 define_key(google_calendar_keymap, "/", null, $fallthrough);
18 define_key(google_calendar_keymap, "p", null, $fallthrough);
19 define_key(google_calendar_keymap, "j", null, $fallthrough);
20 define_key(google_calendar_keymap, "n", null, $fallthrough);
21 define_key(google_calendar_keymap, "k", null, $fallthrough);
22 define_key(google_calendar_keymap, "t", null, $fallthrough);
24 define_key(google_calendar_keymap, "d", null, $fallthrough);
25 define_key(google_calendar_keymap, "x", null, $fallthrough);
26 define_key(google_calendar_keymap, "w", null, $fallthrough);
27 define_key(google_calendar_keymap, "m", null, $fallthrough);
28 define_key(google_calendar_keymap, "a", null, $fallthrough);
29 define_key(google_calendar_keymap, "q", null, $fallthrough);
30 define_key(google_calendar_keymap, "s", null, $fallthrough);
31 define_key(google_calendar_keymap, "u", null, $fallthrough);
32 define_key(google_calendar_keymap, "return", null, $fallthrough);
33 define_key(google_calendar_keymap, "tab", null, $fallthrough);//PROBABLY BAD
34 define_key(google_calendar_keymap, "M-s", null, $fallthrough);
35 define_key(google_calendar_keymap, "escape", null, $fallthrough);
37 define_keymaps_page_mode("google-calendar-mode",
38     build_url_regexp($domain = "google",
39                      $path   = "calendar/",
40                      $allow_www = true),
41     { normal: google_calendar_keymap },
42     $display_name = "Google Calendar");
44 page_mode_activate(google_calendar_mode);
46 provide("google-calendar");