diff options
author | Andrew Dolgov <[email protected]> | 2013-01-22 12:52:52 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-01-22 12:52:52 +0400 |
commit | e5e2cf3b88a33594777a5487f400e9c93d6b82cd (patch) | |
tree | 5aa22169c7defd222f2930925666b523f47cfe8e /classes/backend.php | |
parent | 1b03e1deb6b3947f95e42c68cf95fa76ecf66162 (diff) |
add hack to support arbitrary key descriptions for hotkeys
Diffstat (limited to 'classes/backend.php')
-rw-r--r-- | classes/backend.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/backend.php b/classes/backend.php index 6fa31864d..0b6e6bd30 100644 --- a/classes/backend.php +++ b/classes/backend.php @@ -44,6 +44,12 @@ class Backend extends Handler { print "<li><h3>" . $section . "</h3></li>"; foreach ($hotkeys as $action => $description) { + if (strpos($omap[$action], "|") !== FALSE) { + $omap[$action] = substr($omap[$action], + strpos($omap[$action], "|")+1, + strlen($omap[$action])); + } + print "<li>"; print "<span class='hksequence'>" . $omap[$action] . "</span>"; print $description; |