From: Andrew Dolgov Date: Wed, 27 Feb 2013 18:58:43 +0000 (+0400) Subject: hotkey help: fix actions bound to multiple sequences not displayed correctly X-Git-Tag: 1.7.1~22^2~3 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c2e4e8fe91c31f76a493033117594c4460025755;p=tt-rss.git hotkey help: fix actions bound to multiple sequences not displayed correctly --- diff --git a/classes/backend.php b/classes/backend.php index 0b6e6bd3..d9a7a9fe 100644 --- a/classes/backend.php +++ b/classes/backend.php @@ -23,16 +23,10 @@ class Backend extends Handler { $imap = get_hotkeys_map($this->link); $omap = array(); - // :( - $tinycharmap = array( - "(9)" => "{TAB}", - "(191)" => "?"); - foreach ($imap[1] as $sequence => $action) { - if (!isset($omap[$action])) { - $omap[$action] = isset($tinycharmap[$sequence]) ? $tinycharmap[$sequence] : - $sequence; - } + if (!isset($omap[$action])) $omap[$action] = array(); + + array_push($omap[$action], $sequence); } print "";