]> git.wh0rd.org - tt-rss.git/commitdiff
hotkey_handler: stop propagation of handled prefix/action events
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 5 May 2017 07:01:33 +0000 (10:01 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 5 May 2017 07:01:33 +0000 (10:01 +0300)
js/tt-rss.js

index 244bbd8ed1530fcc314f143053f4cd02eb57a9d0..afbc775f21311cef7384df598e41e2e46f7b5c13 100644 (file)
@@ -893,7 +893,8 @@ function hotkey_handler(e) {
                cmdline.innerHTML = keychar;
                Element.show(cmdline);
 
-               return true;
+               e.stopPropagation();
+               return false;
        }
 
        Element.hide(cmdline);
@@ -923,6 +924,7 @@ function hotkey_handler(e) {
 
        if (action != null) {
                action();
+               e.stopPropagation();
                return false;
        }
 }