mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 23:29:02 +02:00
refactor(hotkeys): remove unnecessary initialization code
This commit is contained in:
parent
97fb273e7f
commit
ee3a8e105e
@ -30,13 +30,6 @@ interface CreateChildrenResponse {
|
|||||||
export default class Entrypoints extends Component {
|
export default class Entrypoints extends Component {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
if (jQuery.hotkeys) {
|
|
||||||
// hot keys are active also inside inputs and content editables
|
|
||||||
jQuery.hotkeys.options.filterInputAcceptingElements = false;
|
|
||||||
jQuery.hotkeys.options.filterContentEditable = false;
|
|
||||||
jQuery.hotkeys.options.filterTextInputs = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
openDevToolsCommand() {
|
openDevToolsCommand() {
|
||||||
|
10
apps/client/src/types.d.ts
vendored
10
apps/client/src/types.d.ts
vendored
@ -97,16 +97,6 @@ declare global {
|
|||||||
setNote(noteId: string);
|
setNote(noteId: string);
|
||||||
}
|
}
|
||||||
|
|
||||||
interface JQueryStatic {
|
|
||||||
hotkeys: {
|
|
||||||
options: {
|
|
||||||
filterInputAcceptingElements: boolean;
|
|
||||||
filterContentEditable: boolean;
|
|
||||||
filterTextInputs: boolean;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var logError: (message: string, e?: Error | string) => void;
|
var logError: (message: string, e?: Error | string) => void;
|
||||||
var logInfo: (message: string) => void;
|
var logInfo: (message: string) => void;
|
||||||
var glob: CustomGlobals;
|
var glob: CustomGlobals;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user