From a5f27a7a67176c30276109a0f4fc07eff2722a9f Mon Sep 17 00:00:00 2001 From: Frederic Brodbeck Date: Sat, 2 Oct 2021 17:23:43 +0200 Subject: [PATCH] clean up --- nemo-preview/src/js/ui/mainWindow.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/nemo-preview/src/js/ui/mainWindow.js b/nemo-preview/src/js/ui/mainWindow.js index de1c22b6..2db8ef94 100644 --- a/nemo-preview/src/js/ui/mainWindow.js +++ b/nemo-preview/src/js/ui/mainWindow.js @@ -200,18 +200,18 @@ MainWindow.prototype = { key == Gdk.KEY_F11) this.toggleFullScreen(); - if (key == 65364 /* Gdk.KEY_Down */) { - // log('down ' + Gtk.DirectionType.DOWN); - this._application.emitSelectionEvent(Gtk.DirectionType.DOWN); - } - else if (key == 65362) { - // log('up ' + Gtk.DirectionType.UP); - this._application.emitSelectionEvent(Gtk.DirectionType.UP); - } - else if (key == 65361) { - // log('left ' + Gtk.DirectionType.LEFT); - this._application.emitSelectionEvent(Gtk.DirectionType.LEFT); - } + if (key == Gdk.KEY_Down) { + this._application.emitSelectionEvent(Gtk.DirectionType.DOWN); + } + else if (key == Gdk.KEY_Up) { + this._application.emitSelectionEvent(Gtk.DirectionType.UP); + } + else if (key == Gdk.KEY_Left) { + this._application.emitSelectionEvent(Gtk.DirectionType.LEFT); + } + else if (key == Gdk.KEY_Right) { + this._application.emitSelectionEvent(Gtk.DirectionType.RIGHT); + } else if (key == 65363) { // log('right ' + Gtk.DirectionType.RIGHT); this._application.emitSelectionEvent(Gtk.DirectionType.RIGHT);