mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Bugfix: AskPopupView tabbing failed now with input fields
This commit is contained in:
parent
aff9ba29e7
commit
639098f401
2 changed files with 13 additions and 5 deletions
|
|
@ -5,4 +5,9 @@
|
||||||
padding: 3em 15px;
|
padding: 3em 15px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button:focus {
|
||||||
|
box-shadow: 0 0 1px inset;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,12 +69,15 @@ export class AskPopupView extends AbstractViewPopup {
|
||||||
onBuild() {
|
onBuild() {
|
||||||
// shortcuts.add('tab', 'shift', 'Ask', () => {
|
// shortcuts.add('tab', 'shift', 'Ask', () => {
|
||||||
shortcuts.add('tab,arrowright,arrowleft', '', 'Ask', () => {
|
shortcuts.add('tab,arrowright,arrowleft', '', 'Ask', () => {
|
||||||
let btn = this.querySelector('.buttonYes');
|
let yes = this.querySelector('.buttonYes'),
|
||||||
if (btn.matches(':focus')) {
|
no = this.querySelector('.buttonNo');
|
||||||
btn = this.querySelector('.buttonNo');
|
if (yes.matches(':focus')) {
|
||||||
}
|
no.focus();
|
||||||
btn.focus();
|
|
||||||
return false;
|
return false;
|
||||||
|
} else if (no.matches(':focus')) {
|
||||||
|
yes.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue