Enlightenment CVS committal Author : englebass Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/exebuf Modified Files: e_exebuf.c Log Message: Add option to clear exebuf (from Bertrand Janin). =================================================================== RCS file: /cvs/e/e17/apps/e/src/modules/exebuf/e_exebuf.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- e_exebuf.c 30 May 2008 22:30:56 -0000 1.3 +++ e_exebuf.c 19 Jun 2008 15:56:18 -0000 1.4 @@ -45,6 +45,7 @@ static void _e_exebuf_prev(void); static void _e_exebuf_complete(void); static void _e_exebuf_backspace(void); +static void _e_exebuf_clear(void); static void _e_exebuf_matches_update(void); static void _e_exebuf_hist_update(void); static void _e_exebuf_hist_clear(void); @@ -830,6 +831,18 @@ } } +static void +_e_exebuf_clear(void) +{ + if (cmd_buf[0] != 0) + { + cmd_buf[0] = 0; + _e_exebuf_update(); + if (!update_timer) + update_timer = ecore_timer_add(MATCH_LAG, _e_exebuf_update_timer, NULL); + } +} + static int _e_exebuf_cb_sort_eap(void *data1, void *data2) { @@ -1265,6 +1278,8 @@ _e_exebuf_exec_term(); else if (!strcmp(ev->keysymbol, "KP_Enter")) _e_exebuf_exec(); + else if (!strcmp(ev->keysymbol, "u") && (ev->modifiers & ECORE_X_MODIFIER_CTRL)) + _e_exebuf_clear(); else if (!strcmp(ev->keysymbol, "Escape")) e_exebuf_hide(); else if (!strcmp(ev->keysymbol, "BackSpace")) ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs