[gnome-documents/gnome-3-22] mainWindow: don't steal space keypress in preview
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-22] mainWindow: don't steal space keypress in preview
- Date: Mon, 31 Oct 2016 00:05:54 +0000 (UTC)
commit 926f7a89735dae8637c610b39af0535f0ab4d9b8
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 fe40c76..0cac142 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -275,8 +275,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]