From 14708b4ef8e01f39bc749e06768fc9d1b410ba41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rblom?= Date: Sun, 21 Jul 2013 21:05:08 +0200 Subject: [PATCH] html5video: fixed root keyboard handler for devices with VK_ENTER other than the usual one. --- src/webui/static/tv.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/webui/static/tv.js b/src/webui/static/tv.js index 57637d7d..8fe15e92 100644 --- a/src/webui/static/tv.js +++ b/src/webui/static/tv.js @@ -454,14 +454,14 @@ tv.app = function() { }); - var nav = new Ext.KeyNav(Ext.getDoc(), { - 'enter': function(e) { + Ext.getDoc().on('keydown', function(e) { + switch(e.getKey()) { + case VK_ENTER: chListPanel.show(); - chList.focus(); - }, - 'scope': this + chList.focus(); + } }); - + chListPanel.show(); chList.focus(); }