/[weechat]/weechat/src/gui/curses/gui-input.c
ViewVC logotype

Diff of /weechat/src/gui/curses/gui-input.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.42 by flashcode, Sun Apr 3 17:12:12 2005 UTC revision 1.43 by flashcode, Sat Apr 30 19:21:28 2005 UTC
# Line 72  gui_read_keyb () Line 72  gui_read_keyb ()
72              case KEY_F(3):              case KEY_F(3):
73              case KEY_F(4):              case KEY_F(4):
74              case KEY_F(9):              case KEY_F(9):
             case KEY_F(11):  
             case KEY_F(12):  
75                  break;                  break;
76              /* previous buffer in window */              /* previous buffer in window */
77              case KEY_F(5):              case KEY_F(5):
# Line 96  gui_read_keyb () Line 94  gui_read_keyb ()
94                  gui_infobar_remove ();                  gui_infobar_remove ();
95                  gui_draw_buffer_infobar (gui_current_window->buffer, 1);                  gui_draw_buffer_infobar (gui_current_window->buffer, 1);
96                  break;                  break;
97                case KEY_F(11):
98                    gui_nick_move_page_up (gui_current_window);
99                    break;
100                case KEY_F(12):
101                    gui_nick_move_page_down (gui_current_window);
102                    break;
103              /* cursor up */              /* cursor up */
104              case KEY_UP:              case KEY_UP:
105                  if (gui_current_window->buffer->dcc)                  if (gui_current_window->buffer->dcc)
# Line 416  gui_read_keyb () Line 420  gui_read_keyb ()
420                          case KEY_RIGHT:                          case KEY_RIGHT:
421                              gui_switch_to_next_buffer (gui_current_window);                              gui_switch_to_next_buffer (gui_current_window);
422                              break;                              break;
423                            /* Alt + home */
424                            case KEY_HOME:
425                                gui_nick_move_beginning (gui_current_window);
426                                break;
427                            /* Alt + end */
428                            case KEY_END:
429                                gui_nick_move_end (gui_current_window);
430                                break;
431                            /* Alt + page up */
432                            case KEY_PPAGE:
433                                gui_nick_move_page_up (gui_current_window);
434                                break;
435                            /* Alt + page down */
436                            case KEY_NPAGE:
437                                gui_nick_move_page_down (gui_current_window);
438                                break;
439                          case 79:                          case 79:
440                              /* TODO: replace 79 by constant name! */                              /* TODO: replace 79 by constant name! */
441                              if (key == 79)                              if ((key = getch()) != ERR)
442                              {                              {
443                                  if ((key = getch()) != ERR)                                  switch (key)
444                                  {                                  {
445                                      switch (key)                                      /* Control + Right */
446                                      {                                      case 99:
447                                          /* Control + Right */                                          if (!gui_current_window->buffer->dcc)    
448                                          case 99:                                              gui_move_next_word (gui_current_window->buffer);
449                                              if (!gui_current_window->buffer->dcc)                                              break;
450                                                  gui_move_next_word (gui_current_window->buffer);                                      /* Control + Left */
451                                              break;                                      case 100:
452                                          /* Control + Left */                                          if (!gui_current_window->buffer->dcc)
453                                          case 100:                                              gui_move_previous_word (gui_current_window->buffer);
454                                              if (!gui_current_window->buffer->dcc)                                          break;
                                                 gui_move_previous_word (gui_current_window->buffer);  
                                             break;  
                                     }  
455                                  }                                  }
456                              }                              }
457                              break;                              break;

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26