mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Bugfix: '`' backtick shortcut being dead key
* remove 'Insert' key from class Selector and bugfix Selector ' ' space. * replace 'M' (move) shortcut with 'Insert' (like: insert into) * '`' backtick being dead key shortcut with 'M' and 'ContextMenu' keys.
This commit is contained in:
parent
e0f5849de6
commit
4177467f81
8 changed files with 70 additions and 112 deletions
|
|
@ -24,16 +24,16 @@ class AbstractApp {
|
|||
this.lastErrorTime = 0;
|
||||
|
||||
const $doc = document;
|
||||
$doc.addEventListener('keydown', (event) => {
|
||||
if (event && event.ctrlKey) {
|
||||
$htmlCL.add('rl-ctrl-key-pressed');
|
||||
}
|
||||
});
|
||||
$doc.addEventListener('keyup', (event) => {
|
||||
if (event && !event.ctrlKey) {
|
||||
$htmlCL.remove('rl-ctrl-key-pressed');
|
||||
}
|
||||
});
|
||||
$doc.addEventListener('keydown', event =>
|
||||
event.ctrlKey && $htmlCL.add('rl-ctrl-key-pressed')
|
||||
// $htmlCL.toggle('rl-ctrl-key-pressed', event.ctrlKey)
|
||||
// 'Control' === event.key && $htmlCL.add('rl-ctrl-key-pressed')
|
||||
);
|
||||
$doc.addEventListener('keyup', event =>
|
||||
// !event.ctrlKey && $htmlCL.remove('rl-ctrl-key-pressed')
|
||||
$htmlCL.toggle('rl-ctrl-key-pressed', event.ctrlKey)
|
||||
// 'Control' === event.key && $htmlCL.remove('rl-ctrl-key-pressed')
|
||||
);
|
||||
|
||||
const fn = (()=>dispatchEvent(new CustomEvent('rl.auto-logout-refresh'))).debounce(5000);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue