Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • keys.c

    r3004c9f rce56149  
    5050
    5151  BIND_CMD("LEFT",        "edit:move-left", "");
     52  BIND_CMD("M-[ D",       "edit:move-left", "");
    5253  BIND_CMD("C-b",         "edit:move-left", "");
    5354  BIND_CMD("RIGHT",       "edit:move-right", "");
     55  BIND_CMD("M-[ C",       "edit:move-right", "");
    5456  BIND_CMD("C-f",         "edit:move-right", "");
    5557
     
    6567  BIND_CMD("M-DELETE",    "edit:delete-prev-word", "");
    6668  BIND_CMD("M-d",         "edit:delete-next-word", "");
     69  BIND_CMD("M-DC",        "edit:delete-next-word", "");
    6770  BIND_CMD("M-[ 3 ; 3 ~", "edit:delete-next-word", "");
    6871
    6972  BIND_CMD("C-h",         "edit:delete-prev-char", "");
    7073  BIND_CMD("BACKSPACE",   "edit:delete-prev-char", "");
    71   BIND_CMD("DC",          "edit:delete-prev-char", "");
    7274  BIND_CMD("DELETE",      "edit:delete-prev-char", "");
     75  BIND_CMD("C-d",         "edit:delete-next-char", "");
     76  BIND_CMD("DC",          "edit:delete-next-char", "");
    7377
    7478  BIND_CMD("C-k",         "edit:delete-to-line-end", "");
     
    7983
    8084  BIND_CMD("C-l",         "( edit:recenter ; redisplay )", "");
    81 
    82   BIND_CMD("C-d",     "edit:delete-next-char", "");
    8385
    8486
     
    9395
    9496  BIND_CMD("UP",      "editmulti:move-up-line", "");
     97  BIND_CMD("M-[ A",   "editmulti:move-up-line", "");
    9598  BIND_CMD("C-p",     "editmulti:move-up-line", "");
    9699  BIND_CMD("DOWN",    "editmulti:move-down-line", "");
     100  BIND_CMD("M-[ B",   "editmulti:move-down-line", "");
    97101  BIND_CMD("C-n",     "editmulti:move-down-line", "");
    98102
     
    120124
    121125  BIND_CMD("UP",          "edit:history-prev", "");
     126  BIND_CMD("M-[ A",       "edit:history-prev", "");
    122127  BIND_CMD("C-p",         "edit:history-prev", "");
    123128  BIND_CMD("M-p",         "edit:history-prev", "");
    124129
    125130  BIND_CMD("DOWN",        "edit:history-next", "");
     131  BIND_CMD("M-[ B",       "edit:history-next", "");
    126132  BIND_CMD("C-n",         "edit:history-next", "");
    127133  BIND_CMD("M-n",         "edit:history-next", "");
     
    166172  BIND_CMD("LF",          "popless:scroll-down-line", "");
    167173  BIND_CMD("DOWN",        "popless:scroll-down-line", "");
     174  BIND_CMD("M-[ B",       "popless:scroll-down-line", "");
    168175  BIND_CMD("C-n",         "popless:scroll-down-line", "");
    169176
    170177  BIND_CMD("UP",          "popless:scroll-up-line", "");
     178  BIND_CMD("M-[ A",       "popless:scroll-up-line", "");
    171179  BIND_CMD("C-h",         "popless:scroll-up-line", "");
    172180  BIND_CMD("C-p",         "popless:scroll-up-line", "");
     
    176184
    177185  BIND_CMD("RIGHT",       "popless:scroll-right 10", "scrolls right");
     186  BIND_CMD("M-[ C",       "popless:scroll-right 10", "scrolls right");
    178187  BIND_CMD("LEFT",        "popless:scroll-left  10", "scrolls left");
     188  BIND_CMD("M-[ D",       "popless:scroll-left  10", "scrolls left");
    179189
    180190  BIND_CMD("HOME",        "popless:scroll-to-top", "");
     
    232242  BIND_CMD("M-[ D",  "recv:shiftleft", "");
    233243  BIND_CMD("RIGHT",  "recv:shiftright","");
    234   BIND_CMD("M-[ C",  "recv:shiftleft", "");
     244  BIND_CMD("M-[ C",  "recv:shiftright","");
    235245  BIND_CMD("DOWN",   "recv:next",      "");
    236246  BIND_CMD("C-n",    "recv:next",      "");
     
    282292  BIND_CMD("M-r", "reply -e",         "reply to the current message, but allow editing of recipient");
    283293  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");
    286294
    287295  BIND_CMD("W",   "start-command webzephyr ", "start a webzephyr command");
     
    302310/****************************************************************/
    303311
    304 void owl_keys_recwin_prealways(int j) {
     312void owl_keys_recwin_prealways(owl_input j) {
    305313  /* Clear the message line on subsequent key presses */
    306314  owl_function_makemsg("");
    307315}
    308316
    309 void owl_keys_editwin_default(int j) {
     317void owl_keys_editwin_default(owl_input j) {
    310318  owl_editwin *e;
    311319  if (NULL != (e=owl_global_get_typwin(&g))) {
    312     owl_editwin_process_char(e, j);
     320       owl_editwin_process_char(e, j);
    313321  }
    314322}
    315323
    316 void owl_keys_editwin_postalways(int j) {
     324void owl_keys_editwin_postalways(owl_input j) {
    317325  owl_editwin *e;
    318326  if (NULL != (e=owl_global_get_typwin(&g))) {
    319327    owl_editwin_post_process_char(e, j);
    320   } 
     328  }
    321329  owl_global_set_needrefresh(&g);
    322330}
    323331
    324 void owl_keys_popless_postalways(int j) {
     332void owl_keys_popless_postalways(owl_input j) {
    325333  owl_viewwin *v = owl_global_get_viewwin(&g);
    326334  owl_popwin *pw = owl_global_get_popwin(&g);
     
    331339}
    332340
    333 void owl_keys_default_invalid(int j) {
    334   if (j==ERR) return;
    335   if (j==410) return;
     341void owl_keys_default_invalid(owl_input j) {
     342  if (j.ch==ERR) return;
     343  if (j.ch==410) return;
    336344  owl_keyhandler_invalidkey(owl_global_get_keyhandler(&g));
    337345}
Note: See TracChangeset for help on using the changeset viewer.