fix: remove unused values
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
import { Editor } from '@/ui_models/editor';
|
|
||||||
import { PanelPuppet, WebDirective } from './../../types';
|
import { PanelPuppet, WebDirective } from './../../types';
|
||||||
import angular from 'angular';
|
|
||||||
import template from './notes-view.pug';
|
import template from './notes-view.pug';
|
||||||
import {
|
import {
|
||||||
ApplicationEvent,
|
ApplicationEvent,
|
||||||
@@ -72,7 +70,6 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
|
|||||||
private previousNoteKeyObserver: any
|
private previousNoteKeyObserver: any
|
||||||
private searchKeyObserver: any
|
private searchKeyObserver: any
|
||||||
private noteFlags: Partial<Record<UuidString, NoteFlag[]>> = {}
|
private noteFlags: Partial<Record<UuidString, NoteFlag[]>> = {}
|
||||||
private unsubEditorChange: any
|
|
||||||
private removeObservers: Array<() => void> = [];
|
private removeObservers: Array<() => void> = [];
|
||||||
|
|
||||||
/* @ngInject */
|
/* @ngInject */
|
||||||
@@ -747,7 +744,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
|
|||||||
document.body,
|
document.body,
|
||||||
this.getSearchBar()
|
this.getSearchBar()
|
||||||
],
|
],
|
||||||
onKeyDown: (event) => {
|
onKeyDown: () => {
|
||||||
const searchBar = this.getSearchBar();
|
const searchBar = this.getSearchBar();
|
||||||
if (searchBar === document.activeElement) {
|
if (searchBar === document.activeElement) {
|
||||||
searchBar.blur();
|
searchBar.blur();
|
||||||
@@ -759,7 +756,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
|
|||||||
this.previousNoteKeyObserver = this.application!.getKeyboardService().addKeyObserver({
|
this.previousNoteKeyObserver = this.application!.getKeyboardService().addKeyObserver({
|
||||||
key: KeyboardKey.Up,
|
key: KeyboardKey.Up,
|
||||||
element: document.body,
|
element: document.body,
|
||||||
onKeyDown: (event) => {
|
onKeyDown: () => {
|
||||||
this.selectPreviousNote();
|
this.selectPreviousNote();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -770,7 +767,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
|
|||||||
KeyboardModifier.Meta,
|
KeyboardModifier.Meta,
|
||||||
KeyboardModifier.Shift
|
KeyboardModifier.Shift
|
||||||
],
|
],
|
||||||
onKeyDown: (event) => {
|
onKeyDown: () => {
|
||||||
const searchBar = this.getSearchBar();
|
const searchBar = this.getSearchBar();
|
||||||
if (searchBar) { searchBar.focus(); };
|
if (searchBar) { searchBar.focus(); };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user