Mercurial > pidgin.yaz
diff console/libgnt/gntentry.c @ 14901:d9d28bd79715
[gaim-migrate @ 17673]
erasechar() returns the erase character (VERASE) from termios. This may solve
the backspace problem for Sebastian Noack.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 05 Nov 2006 17:37:09 +0000 |
parents | 065e7ac30338 |
children | f16e056f816d |
line wrap: on
line diff
--- a/console/libgnt/gntentry.c Sun Nov 05 17:28:33 2006 +0000 +++ b/console/libgnt/gntentry.c Sun Nov 05 17:37:09 2006 +0000 @@ -536,6 +536,8 @@ gnt_entry_class_init(GntEntryClass *klass) { GntBindableClass *bindable = GNT_BINDABLE_CLASS(klass); + char s[2] = {erasechar(), 0}; + parent_class = GNT_WIDGET_CLASS(klass); parent_class->destroy = gnt_entry_destroy; parent_class->draw = gnt_entry_draw; @@ -552,6 +554,7 @@ gnt_bindable_register_binding(bindable, "cursor-end", GNT_KEY_END, NULL); gnt_bindable_class_register_action(bindable, "delete-prev", backspace, GNT_KEY_BACKSPACE, NULL); + gnt_bindable_register_binding(bindable, "delete-prev", s, NULL); gnt_bindable_class_register_action(bindable, "delete-next", delkey, GNT_KEY_DEL, NULL); gnt_bindable_register_binding(bindable, "delete-next", GNT_KEY_CTRL_D, NULL);