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
This commit is contained in:
Mike Blumenkrantz 2012-06-20 09:20:27 +00:00
parent b2c96e3161
commit 9bf77b26ac
1 changed files with 14 additions and 0 deletions

View File

@ -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)
{