From d8afa93cef0a45c814584d64d4d24f7eba1fd2f3 Mon Sep 17 00:00:00 2001 From: Sam Giles Date: Wed, 15 Feb 2017 18:08:02 +0000 Subject: [PATCH] Fix #15513: Stop spacebar scrolling directly from the glutin window. --- ports/glutin/window.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index 2ed98b0f682..300d078e26f 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -1042,8 +1042,7 @@ impl WindowMethods for Window { self.event_queue.borrow_mut().push(WindowEvent::Navigation(WindowNavigateMsg::Back)); } - (NONE, None, Key::PageDown) | - (NONE, Some(' '), _) => { + (NONE, None, Key::PageDown) => { let scroll_location = ScrollLocation::Delta(TypedPoint2D::new(0.0, -self.framebuffer_size() .to_f32() @@ -1052,8 +1051,7 @@ impl WindowMethods for Window { self.scroll_window(scroll_location, TouchEventType::Move); } - (NONE, None, Key::PageUp) | - (SHIFT, Some(' '), _) => { + (NONE, None, Key::PageUp) => { let scroll_location = ScrollLocation::Delta(TypedPoint2D::new(0.0, self.framebuffer_size() .to_f32()