From 9bf77b26acbc208f22f18ac2bb42c8c0b1429c18 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 20 Jun 2012 09:20:27 +0000 Subject: [PATCH] keybindings which execute a command will no longer execute the command on the repeat of the key: you now have to press the key every time you want to execute the command. fixes #329 SVN revision: 72536 --- src/bin/e_actions.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/bin/e_actions.c b/src/bin/e_actions.c index 53e70dd05..24e5c5fc4 100644 --- a/src/bin/e_actions.c +++ b/src/bin/e_actions.c @@ -1809,7 +1809,21 @@ ACT_FN_GO_KEY(menu_show, , __UNUSED__) ACT_FN_GO(exec,) { E_Zone *zone; + static double lock; + /* prevent exec actions from occurring too frequently */ + if (lock) + { + double test; + + test = ecore_loop_time_get(); + if (test - lock < 0.05) + { + lock = test; + return; + } + } + lock = ecore_loop_time_get(); zone = _e_actions_zone_get(obj); if (zone) {