From 84713fbab30e9f346f30a8c4be161439f34c62fd Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 21 Jun 2011 08:27:54 +0000 Subject: [PATCH] give all delete actions DEL key as shortcut --- etemplate/inc/class.nextmatch_widget.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index 655c467551..558f5c3884 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -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',