mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 04:59:21 +03:00
There this works
This commit is contained in:
parent
3a48cc8b7f
commit
c7054ff56c
19 changed files with 32 additions and 441 deletions
|
|
@ -87,7 +87,7 @@ class AskPopupView extends AbstractViewNext {
|
|||
|
||||
onBuild() {
|
||||
// shortcuts.add('tab', 'shift', KeyState.PopupAsk, () => {
|
||||
shortcuts.add(['tab','arrowright','arrowleft'], '', KeyState.PopupAsk, () => {
|
||||
shortcuts.add('tab,arrowright,arrowleft', '', KeyState.PopupAsk, () => {
|
||||
let btn = this.querySelector('.buttonYes');
|
||||
if (btn.matches(':focus')) {
|
||||
btn = this.querySelector('.buttonNo');
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ class ComposeOpenPgpPopupView extends AbstractViewNext {
|
|||
}
|
||||
|
||||
onBuild() {
|
||||
// shortcuts.add(('tab', 'shift', KeyState.PopupComposeOpenPGP, () => {
|
||||
// shortcuts.add('tab', 'shift', KeyState.PopupComposeOpenPGP, () => {
|
||||
shortcuts.add('tab', '', KeyState.PopupComposeOpenPGP, () => {
|
||||
let btn = this.querySelector('.inputPassword');
|
||||
if (btn.matches(':focus')) {
|
||||
|
|
|
|||
|
|
@ -611,7 +611,7 @@ class ContactsPopupView extends AbstractViewNext {
|
|||
return false;
|
||||
});
|
||||
|
||||
shortcuts.add(['c','w'], '', KeyState.ContactList, () => {
|
||||
shortcuts.add('c,w', '', KeyState.ContactList, () => {
|
||||
this.newMessageCommand();
|
||||
return false;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class KeyboardShortcutsHelpPopupView extends AbstractViewNext {
|
|||
dom.querySelectorAll('a[data-toggle="tab"]').forEach(node => node.Tab || new BSN.Tab(node));
|
||||
|
||||
// shortcuts.add('tab', 'shift',
|
||||
shortcuts.add(['tab','arrowleft','arrowright'], '',
|
||||
shortcuts.add('tab,arrowleft,arrowright', '',
|
||||
KeyState.PopupKeyboardShortcutsHelp,
|
||||
((event, handler)=>{
|
||||
if (event && handler) {
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ class MessageOpenPgpPopupView extends AbstractViewNext {
|
|||
}
|
||||
|
||||
onBuild(oDom) {
|
||||
// shortcuts.add('tab','shift', KeyState.PopupMessageOpenPGP, () => {
|
||||
// shortcuts.add('tab', 'shift', KeyState.PopupMessageOpenPGP, () => {
|
||||
shortcuts.add('tab', '', KeyState.PopupMessageOpenPGP, () => {
|
||||
let btn = this.querySelector('.inputPassword');
|
||||
if (btn.matches(':focus')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue