Skip to content

Commit 103a856

Browse files
committed
clean up
1 parent 844e5e2 commit 103a856

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

nemo-preview/src/js/ui/mainWindow.js

+13-16
Original file line numberDiff line numberDiff line change
@@ -200,22 +200,19 @@ MainWindow.prototype = {
200200
key == Gdk.KEY_F11)
201201
this.toggleFullScreen();
202202

203-
if (key == 65364 /* Gdk.KEY_Down */) {
204-
// log('down ' + Gtk.DirectionType.DOWN);
205-
this._application.emitSelectionEvent(Gtk.DirectionType.DOWN);
206-
}
207-
else if (key == 65362) {
208-
// log('up ' + Gtk.DirectionType.UP);
209-
this._application.emitSelectionEvent(Gtk.DirectionType.UP);
210-
}
211-
else if (key == 65361) {
212-
// log('left ' + Gtk.DirectionType.LEFT);
213-
this._application.emitSelectionEvent(Gtk.DirectionType.LEFT);
214-
}
215-
else if (key == 65363) {
216-
// log('right ' + Gtk.DirectionType.RIGHT);
217-
this._application.emitSelectionEvent(Gtk.DirectionType.RIGHT);
218-
}
203+
if (key == Gdk.KEY_Down) {
204+
this._application.emitSelectionEvent(Gtk.DirectionType.DOWN);
205+
}
206+
else if (key == Gdk.KEY_Up) {
207+
this._application.emitSelectionEvent(Gtk.DirectionType.UP);
208+
}
209+
else if (key == Gdk.KEY_Left) {
210+
this._application.emitSelectionEvent(Gtk.DirectionType.LEFT);
211+
}
212+
else if (key == Gdk.KEY_Right) {
213+
this._application.emitSelectionEvent(Gtk.DirectionType.RIGHT);
214+
}
215+
219216
return false;
220217
},
221218

0 commit comments

Comments
 (0)