Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • keys.c

    rce56149 r3004c9f  
    5050
    5151  BIND_CMD("LEFT",        "edit:move-left", "");
    52   BIND_CMD("M-[ D",       "edit:move-left", "");
    5352  BIND_CMD("C-b",         "edit:move-left", "");
    5453  BIND_CMD("RIGHT",       "edit:move-right", "");
    55   BIND_CMD("M-[ C",       "edit:move-right", "");
    5654  BIND_CMD("C-f",         "edit:move-right", "");
    5755
     
    6765  BIND_CMD("M-DELETE",    "edit:delete-prev-word", "");
    6866  BIND_CMD("M-d",         "edit:delete-next-word", "");
    69   BIND_CMD("M-DC",        "edit:delete-next-word", "");
    7067  BIND_CMD("M-[ 3 ; 3 ~", "edit:delete-next-word", "");
    7168
    7269  BIND_CMD("C-h",         "edit:delete-prev-char", "");
    7370  BIND_CMD("BACKSPACE",   "edit:delete-prev-char", "");
     71  BIND_CMD("DC",          "edit:delete-prev-char", "");
    7472  BIND_CMD("DELETE",      "edit:delete-prev-char", "");
    75   BIND_CMD("C-d",         "edit:delete-next-char", "");
    76   BIND_CMD("DC",          "edit:delete-next-char", "");
    7773
    7874  BIND_CMD("C-k",         "edit:delete-to-line-end", "");
     
    8379
    8480  BIND_CMD("C-l",         "( edit:recenter ; redisplay )", "");
     81
     82  BIND_CMD("C-d",     "edit:delete-next-char", "");
    8583
    8684
     
    9593
    9694  BIND_CMD("UP",      "editmulti:move-up-line", "");
    97   BIND_CMD("M-[ A",   "editmulti:move-up-line", "");
    9895  BIND_CMD("C-p",     "editmulti:move-up-line", "");
    9996  BIND_CMD("DOWN",    "editmulti:move-down-line", "");
    100   BIND_CMD("M-[ B",   "editmulti:move-down-line", "");
    10197  BIND_CMD("C-n",     "editmulti:move-down-line", "");
    10298
     
    124120
    125121  BIND_CMD("UP",          "edit:history-prev", "");
    126   BIND_CMD("M-[ A",       "edit:history-prev", "");
    127122  BIND_CMD("C-p",         "edit:history-prev", "");
    128123  BIND_CMD("M-p",         "edit:history-prev", "");
    129124
    130125  BIND_CMD("DOWN",        "edit:history-next", "");
    131   BIND_CMD("M-[ B",       "edit:history-next", "");
    132126  BIND_CMD("C-n",         "edit:history-next", "");
    133127  BIND_CMD("M-n",         "edit:history-next", "");
     
    172166  BIND_CMD("LF",          "popless:scroll-down-line", "");
    173167  BIND_CMD("DOWN",        "popless:scroll-down-line", "");
    174   BIND_CMD("M-[ B",       "popless:scroll-down-line", "");
    175168  BIND_CMD("C-n",         "popless:scroll-down-line", "");
    176169
    177170  BIND_CMD("UP",          "popless:scroll-up-line", "");
    178   BIND_CMD("M-[ A",       "popless:scroll-up-line", "");
    179171  BIND_CMD("C-h",         "popless:scroll-up-line", "");
    180172  BIND_CMD("C-p",         "popless:scroll-up-line", "");
     
    184176
    185177  BIND_CMD("RIGHT",       "popless:scroll-right 10", "scrolls right");
    186   BIND_CMD("M-[ C",       "popless:scroll-right 10", "scrolls right");
    187178  BIND_CMD("LEFT",        "popless:scroll-left  10", "scrolls left");
    188   BIND_CMD("M-[ D",       "popless:scroll-left  10", "scrolls left");
    189179
    190180  BIND_CMD("HOME",        "popless:scroll-to-top", "");
     
    242232  BIND_CMD("M-[ D",  "recv:shiftleft", "");
    243233  BIND_CMD("RIGHT",  "recv:shiftright","");
    244   BIND_CMD("M-[ C",  "recv:shiftright","");
     234  BIND_CMD("M-[ C",  "recv:shiftleft", "");
    245235  BIND_CMD("DOWN",   "recv:next",      "");
    246236  BIND_CMD("C-n",    "recv:next",      "");
     
    292282  BIND_CMD("M-r", "reply -e",         "reply to the current message, but allow editing of recipient");
    293283  BIND_CMD("M-R", "reply -e sender",  "reply to sender of the current message, but allow editing of recipient");
     284                 
     285  BIND_CMD("w",   "openurl",          "open a URL using a webbrowser");
    294286
    295287  BIND_CMD("W",   "start-command webzephyr ", "start a webzephyr command");
     
    310302/****************************************************************/
    311303
    312 void owl_keys_recwin_prealways(owl_input j) {
     304void owl_keys_recwin_prealways(int j) {
    313305  /* Clear the message line on subsequent key presses */
    314306  owl_function_makemsg("");
    315307}
    316308
    317 void owl_keys_editwin_default(owl_input j) {
     309void owl_keys_editwin_default(int j) {
    318310  owl_editwin *e;
    319311  if (NULL != (e=owl_global_get_typwin(&g))) {
    320        owl_editwin_process_char(e, j);
     312    owl_editwin_process_char(e, j);
    321313  }
    322314}
    323315
    324 void owl_keys_editwin_postalways(owl_input j) {
     316void owl_keys_editwin_postalways(int j) {
    325317  owl_editwin *e;
    326318  if (NULL != (e=owl_global_get_typwin(&g))) {
    327319    owl_editwin_post_process_char(e, j);
    328   }
     320  } 
    329321  owl_global_set_needrefresh(&g);
    330322}
    331323
    332 void owl_keys_popless_postalways(owl_input j) {
     324void owl_keys_popless_postalways(int j) {
    333325  owl_viewwin *v = owl_global_get_viewwin(&g);
    334326  owl_popwin *pw = owl_global_get_popwin(&g);
     
    339331}
    340332
    341 void owl_keys_default_invalid(owl_input j) {
    342   if (j.ch==ERR) return;
    343   if (j.ch==410) return;
     333void owl_keys_default_invalid(int j) {
     334  if (j==ERR) return;
     335  if (j==410) return;
    344336  owl_keyhandler_invalidkey(owl_global_get_keyhandler(&g));
    345337}
Note: See TracChangeset for help on using the changeset viewer.