Mercurial > pidgin.yaz
diff finch/libgnt/gntentry.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 | c38d72677c8a |
children | 77737a3526f1 |
line wrap: on
line diff
--- a/finch/libgnt/gntentry.c Tue Feb 12 04:03:30 2008 +0000 +++ b/finch/libgnt/gntentry.c Wed Feb 13 05:57:54 2008 +0000 @@ -713,7 +713,7 @@ return FALSE; } - if ((text[0] == '\r' || text[0] == ' ') && entry->ddown) + if ((text[0] == '\r' || text[0] == ' ' || text[0] == '\n') && entry->ddown) { char *text = g_strdup(gnt_tree_get_selection_data(GNT_TREE(entry->ddown))); destroy_suggest(entry); @@ -782,7 +782,7 @@ return TRUE; } - if (text[0] == '\r') { + if (text[0] == '\r' || text[0] == '\n') { gnt_widget_activate(widget); return TRUE; }