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:
parent
09cca76d32
commit
f87ca759c3
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue