Mercurial > pidgin
diff finch/libgnt/gntfilesel.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 | 6de09629f091 |
children | e2e57d3c0578 |
line wrap: on
line diff
--- a/finch/libgnt/gntfilesel.c Tue Feb 12 04:03:30 2008 +0000 +++ b/finch/libgnt/gntfilesel.c Wed Feb 13 05:57:54 2008 +0000 @@ -342,7 +342,7 @@ static gboolean dir_key_pressed(GntTree *tree, const char *key, GntFileSel *sel) { - if (strcmp(key, "\r") == 0) { + if (strcmp(key, "\r") == 0 || strcmp(key, "\n") == 0) { char *str = g_strdup(gnt_tree_get_selection_data(tree)); char *path, *dir; @@ -376,7 +376,7 @@ struct stat st; int glob_ret; #endif - if (strcmp(key, "\r")) + if (strcmp(key, "\r") && strcmp(key, "\n")) return FALSE; str = (char*)gnt_entry_get_text(GNT_ENTRY(sel->location));