Mercurial > pidgin.yaz
comparison finch/libgnt/gnttree.c @ 22289:0ba0f2804299
'\n' (ctrl-j) should behave similar to '\r' (ctrl-m). Fixes #4833.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 13 Feb 2008 05:57:54 +0000 |
parents | 782df0fd9e5e |
children | 6843c06f5c6a |
comparison
equal
deleted
inserted
replaced
22288:f1fa491504eb | 22289:0ba0f2804299 |
---|---|
796 gnt_tree_key_pressed(GntWidget *widget, const char *text) | 796 gnt_tree_key_pressed(GntWidget *widget, const char *text) |
797 { | 797 { |
798 GntTree *tree = GNT_TREE(widget); | 798 GntTree *tree = GNT_TREE(widget); |
799 GntTreeRow *old = tree->current; | 799 GntTreeRow *old = tree->current; |
800 | 800 |
801 if (text[0] == '\r') { | 801 if (text[0] == '\r' || text[0] == '\n') { |
802 end_search(tree); | 802 end_search(tree); |
803 gnt_widget_activate(widget); | 803 gnt_widget_activate(widget); |
804 } else if (tree->priv->search) { | 804 } else if (tree->priv->search) { |
805 gboolean changed = TRUE; | 805 gboolean changed = TRUE; |
806 if (isalnum(*text)) { | 806 if (isalnum(*text)) { |