From 3a372bc122fefa95df70b1242100c378780d2869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Fri, 25 Mar 2016 02:31:20 +0100 Subject: [PATCH 1/2] fix #10183, forward navigation key should not require shift to work. --- ports/glutin/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index 5cebe5cc724..fdd026b0e85 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -733,7 +733,7 @@ impl WindowMethods for Window { (NONE, Key::Backspace) => { self.event_queue.borrow_mut().push(WindowEvent::Navigation(WindowNavigateMsg::Back)); } - (SHIFT, Key::NavigateForward) => { + (NONE, Key::NavigateForward) => { self.event_queue.borrow_mut().push(WindowEvent::Navigation(WindowNavigateMsg::Forward)); } (NONE, Key::NavigateBackward) => { From 3b6afb31c6aa6c7b8c644e54b156bba869873c81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Fri, 25 Mar 2016 02:53:46 +0100 Subject: [PATCH 2/2] fix #10184, remove backspace-to-navigate. --- ports/glutin/window.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index fdd026b0e85..d269ba037af 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -727,12 +727,6 @@ impl WindowMethods for Window { self.event_queue.borrow_mut().push(WindowEvent::ResetZoom); } - (SHIFT, Key::Backspace) => { - self.event_queue.borrow_mut().push(WindowEvent::Navigation(WindowNavigateMsg::Forward)); - } - (NONE, Key::Backspace) => { - self.event_queue.borrow_mut().push(WindowEvent::Navigation(WindowNavigateMsg::Back)); - } (NONE, Key::NavigateForward) => { self.event_queue.borrow_mut().push(WindowEvent::Navigation(WindowNavigateMsg::Forward)); }