mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user