]> git.wh0rd.org - tt-rss.git/blobdiff - classes/backend.php
add hack to support arbitrary key descriptions for hotkeys
[tt-rss.git] / classes / backend.php
index 6fa31864d6bcc507c7e801ad7eb7c57cde2386e3..0b6e6bd30117b4857cfb80531cd27db51880ef2c 100644 (file)
@@ -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;