1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

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