Skip to content

Commit

Permalink
fix: remove unused values
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Sep 10, 2020
1 parent 9a9d2c4 commit cef1934
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/assets/javascripts/views/notes/notes_view.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Editor } from '@/ui_models/editor';
import { PanelPuppet, WebDirective } from './../../types';
import angular from 'angular';
import template from './notes-view.pug';
import {
ApplicationEvent,
Expand Down Expand Up @@ -72,7 +70,6 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
private previousNoteKeyObserver: any
private searchKeyObserver: any
private noteFlags: Partial<Record<UuidString, NoteFlag[]>> = {}
private unsubEditorChange: any
private removeObservers: Array<() => void> = [];

/* @ngInject */
Expand Down Expand Up @@ -747,7 +744,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
document.body,
this.getSearchBar()
],
onKeyDown: (event) => {
onKeyDown: () => {
const searchBar = this.getSearchBar();
if (searchBar === document.activeElement) {
searchBar.blur();
Expand All @@ -759,7 +756,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
this.previousNoteKeyObserver = this.application!.getKeyboardService().addKeyObserver({
key: KeyboardKey.Up,
element: document.body,
onKeyDown: (event) => {
onKeyDown: () => {
this.selectPreviousNote();
}
});
Expand All @@ -770,7 +767,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
KeyboardModifier.Meta,
KeyboardModifier.Shift
],
onKeyDown: (event) => {
onKeyDown: () => {
const searchBar = this.getSearchBar();
if (searchBar) { searchBar.focus(); };
}
Expand Down

0 comments on commit cef1934

Please sign in to comment.