Fix tab key losing focus from the hidden input field. That should only happen on the device side.

This commit is contained in:
Simo Kinnunen
2014-09-17 15:22:20 +09:00
parent 09cca76d32
commit f87ca759c3

View File

@@ -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)
}