[gnome-documents] mainWindow: don't steal space keypress in preview
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] mainWindow: don't steal space keypress in preview
- Date: Mon, 31 Oct 2016 00:03:34 +0000 (UTC)
commit a9c33888f2e929e3c5b865c868f2d6ebaf527a97
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Oct 30 17:00:56 2016 -0700
mainWindow: don't steal space keypress in preview
The Evince view will already scroll the document when it has focus;
hardcoding another keybinding here prevents from inserting a space in
the searchbar.
https://bugzilla.gnome.org/show_bug.cgi?id=766278
src/mainWindow.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index b0a079f..265e5da 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -259,8 +259,7 @@ const MainWindow = new Lang.Class({
}
}
- if (keyval == Gdk.KEY_space ||
- keyval == Gdk.KEY_Page_Down) {
+ if (keyval == Gdk.KEY_Page_Down) {
try {
preview.scroll(Gtk.ScrollType.PAGE_FORWARD);
return true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]