From f87ca759c36aa953fb35f3c67d1cee393a2f1a86 Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Wed, 17 Sep 2014 15:22:20 +0900 Subject: [PATCH] Fix tab key losing focus from the hidden input field. That should only happen on the device side. --- res/app/components/stf/screen/screen-directive.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/res/app/components/stf/screen/screen-directive.js b/res/app/components/stf/screen/screen-directive.js index e15facdb..d30ccc4b 100644 --- a/res/app/components/stf/screen/screen-directive.js +++ b/res/app/components/stf/screen/screen-directive.js @@ -129,6 +129,11 @@ module.exports = function DeviceScreenDirective($document, ScalingService, } function keydownListener(e) { + // Prevent tab from switching focus to the next element, we only want + // that to happen on the device side. + if (e.keyCode === 9) { + e.preventDefault() + } control.keyDown(e.keyCode) }