mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Revamp aBootstrapDropdowns
This commit is contained in:
parent
8846c453b1
commit
31bb7267ec
4 changed files with 16 additions and 23 deletions
|
|
@ -7,7 +7,7 @@ import {
|
|||
bMobileDevice
|
||||
} from 'Common/Globals';
|
||||
|
||||
import { pString, detectDropdownVisibility } from 'Common/Utils';
|
||||
import { pString } from 'Common/Utils';
|
||||
|
||||
import { KeyState } from 'Common/Enums';
|
||||
import { root, rootAdmin, rootUser, populateAuthSuffix } from 'Common/Links';
|
||||
|
|
@ -48,9 +48,7 @@ class AbstractApp extends AbstractBoot {
|
|||
$doc.addEventListener('keypress', fn);
|
||||
$doc.addEventListener('click', fn);
|
||||
|
||||
key('esc, enter', KeyState.All, () => {
|
||||
detectDropdownVisibility();
|
||||
});
|
||||
key('esc, enter', KeyState.All, () => rl.Dropdowns.detectVisibility());
|
||||
}
|
||||
|
||||
remote() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue