From e5e2cf3b88a33594777a5487f400e9c93d6b82cd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 Jan 2013 12:52:52 +0400 Subject: add hack to support arbitrary key descriptions for hotkeys --- classes/backend.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'classes') 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 "
  • " . $section . "

  • "; foreach ($hotkeys as $action => $description) { + if (strpos($omap[$action], "|") !== FALSE) { + $omap[$action] = substr($omap[$action], + strpos($omap[$action], "|")+1, + strlen($omap[$action])); + } + print "
  • "; print "" . $omap[$action] . ""; print $description; -- cgit v1.2.3-54-g00ecf