mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-01 00:05:51 +00:00
Dropdown menu keyboard navigation (step 1 / USTABLE)
This commit is contained in:
@@ -13,6 +13,8 @@ function AbstractSystemDropDownViewModel()
|
||||
this.accounts = oData.accounts;
|
||||
this.accountEmail = oData.accountEmail;
|
||||
this.accountsLoading = oData.accountsLoading;
|
||||
this.accountMenuFocus = oData.accountMenuFocus;
|
||||
|
||||
this.allowAddAccount = RL.settingsGet('AllowAdditionalAccounts');
|
||||
|
||||
this.loading = ko.computed(function () {
|
||||
@@ -20,6 +22,14 @@ function AbstractSystemDropDownViewModel()
|
||||
}, this);
|
||||
|
||||
this.accountClick = _.bind(this.accountClick, this);
|
||||
|
||||
key('`', function () {
|
||||
if (oData.useKeyboardShortcuts() && !RL.popupVisibility() &&
|
||||
!oData.accountMenuFocus())
|
||||
{
|
||||
oData.accountMenuFocus(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
_.extend(AbstractSystemDropDownViewModel.prototype, KnoinAbstractViewModel.prototype);
|
||||
|
||||
Reference in New Issue
Block a user