mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 06:58:27 +03:00
Cleanup knockout commands and replaced EventKeyCode with native KeyboardEvent.key
This commit is contained in:
parent
d06fed09d6
commit
7ac8143f34
9 changed files with 87 additions and 118 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import { EventKeyCode } from 'Common/Enums';
|
||||
|
||||
/**
|
||||
* @type {Object}
|
||||
*/
|
||||
|
|
@ -290,7 +288,7 @@ class HtmlEditor {
|
|||
|
||||
this.editor = CKEDITOR.appendTo(this.element, config);
|
||||
|
||||
this.editor.on('key', event => !(event && event.data && EventKeyCode.Tab === event.data.keyCode));
|
||||
this.editor.on('key', event => !(event && event.data && 'Tab' == event.data.key));
|
||||
|
||||
if (window.FileReader) {
|
||||
this.editor.on('drop', (event) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue