give all delete actions DEL key as shortcut

This commit is contained in:
Ralf Becker 2011-06-21 08:27:54 +00:00
parent 0f2983a504
commit 84713fbab3

View File

@ -730,6 +730,12 @@ class nextmatch_widget
$action['data']['nm_action'] = 'egw_open';
}
// give all delete actions a delete shortcut
if ($id == 'delete' && !isset($action['shortcut']))
{
$action['shortcut'] = egw_keymanager::shortcut(EGW_KEY_DELETE);
}
static $egw_action_supported = array( // attributes supported by egw_action
'id','caption','iconUrl','type','default','onExecute','group',
'enabled','allowOnMultiple','hideOnDisabled','data','children',