[gnome-documents/gnome-3-20] mainWindow: don't steal space keypress in	preview
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-documents/gnome-3-20] mainWindow: don't steal space keypress in	preview
- Date: Mon, 19 Jun 2017 22:12:35 +0000 (UTC)
commit be916686153d06b4df447ea94aea22b6a9e6d56d
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 f5abb99..ffd308c 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -271,8 +271,7 @@ const MainWindow = new Lang.Class({
             return true;
         }
 
-        if (keyval == Gdk.KEY_space ||
-            keyval == Gdk.KEY_Page_Down) {
+        if (keyval == Gdk.KEY_Page_Down) {
             preview.view.scroll(Gtk.ScrollType.PAGE_FORWARD, false);
             return true;
         }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]