1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 05:55:55 +00:00

add hack to support arbitrary key descriptions for hotkeys

This commit is contained in:
Andrew Dolgov
2013-01-22 12:52:52 +04:00
parent 1b03e1deb6
commit e5e2cf3b88
3 changed files with 21 additions and 4 deletions

View 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;