Mercurial > pidgin.yaz
diff console/libgnt/gntentry.c @ 14876:70623f0d5cdc
[gaim-migrate @ 17645]
Use terminfo/termcap information (from ncurses) as much as possible. There
still need to be some manual 'refinement' based on $TERM. I'll see if I
can get rid of those. Also, I am probably going to allow users to provide
information that terminfo can't provide, like the keycode for ctrl+up etc.
Let me know if any of the keybinding doesn't work.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 01 Nov 2006 03:38:23 +0000 |
parents | a73b2b332ec2 |
children | 065e7ac30338 |
line wrap: on
line diff
--- a/console/libgnt/gntentry.c Wed Nov 01 02:13:37 2006 +0000 +++ b/console/libgnt/gntentry.c Wed Nov 01 03:38:23 2006 +0000 @@ -550,14 +550,14 @@ gnt_widget_class_register_action(parent_class, "cursor-home", move_start, GNT_KEY_CTRL_A, NULL); - gnt_widget_register_binding(parent_class, "cursor-home", "\033" GNT_KEY_HOME, NULL); + gnt_widget_register_binding(parent_class, "cursor-home", GNT_KEY_HOME, NULL); gnt_widget_class_register_action(parent_class, "cursor-end", move_end, GNT_KEY_CTRL_E, NULL); - gnt_widget_register_binding(parent_class, "cursor-end", "\033" GNT_KEY_END, NULL); + gnt_widget_register_binding(parent_class, "cursor-end", GNT_KEY_END, NULL); gnt_widget_class_register_action(parent_class, "delete-prev", backspace, GNT_KEY_BACKSPACE, NULL); gnt_widget_class_register_action(parent_class, "delete-next", delkey, - "\033" GNT_KEY_DEL, NULL); + GNT_KEY_DEL, NULL); gnt_widget_register_binding(parent_class, "delete-next", GNT_KEY_CTRL_D, NULL); gnt_widget_class_register_action(parent_class, "delete-start", del_to_home, GNT_KEY_CTRL_U, NULL); @@ -572,17 +572,17 @@ gnt_widget_class_register_action(parent_class, "cursor-prev-word", move_back_word, NULL, NULL); gnt_widget_class_register_action(parent_class, "cursor-prev", move_back, - "\033" GNT_KEY_LEFT, NULL); + GNT_KEY_LEFT, NULL); gnt_widget_register_binding(parent_class, "cursor-prev", GNT_KEY_CTRL_B, NULL); gnt_widget_class_register_action(parent_class, "cursor-next", move_forward, - "\033" GNT_KEY_RIGHT, NULL); + GNT_KEY_RIGHT, NULL); gnt_widget_register_binding(parent_class, "cursor-next", GNT_KEY_CTRL_F, NULL); gnt_widget_class_register_action(parent_class, "suggest-show", suggest_show, "\t", NULL); gnt_widget_class_register_action(parent_class, "suggest-next", suggest_next, - "\033" GNT_KEY_DOWN, NULL); + GNT_KEY_DOWN, NULL); gnt_widget_class_register_action(parent_class, "suggest-prev", suggest_prev, - "\033" GNT_KEY_UP, NULL); + GNT_KEY_UP, NULL); gnt_widget_class_register_action(parent_class, "history-prev", history_prev, "\033" GNT_KEY_CTRL_DOWN, NULL); gnt_widget_class_register_action(parent_class, "history-next", history_next,