After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 329920 - Nautilus should act on XF86Back / XF86Forward keys
Nautilus should act on XF86Back / XF86Forward keys
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Keyboardability
2.17.x
Other All
: High enhancement
: 2.18.x
Assigned To: Christian Neumair
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-02-04 19:34 UTC by Crispin Flowerday (not receiving bugmail)
Modified: 2007-01-11 19:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Proposed patch (8.02 KB, patch)
2006-07-09 17:22 UTC, Christian Neumair
needs-work Details | Review
Proposed patch #2 (7.28 KB, patch)
2006-12-26 18:12 UTC, Christian Neumair
committed Details | Review

Description Crispin Flowerday (not receiving bugmail) 2006-02-04 19:34:53 UTC
I have my IBM x31 keyboard correctly configured for the back and forward keys, these emit an XF86Back and XF86Forward key events. Nautilus should act on these, and go back or forward as appropriate
Comment 1 Reinout van Schouwen 2006-02-09 15:47:49 UTC
How should this apply to spatial windows, if at all?
Comment 2 Crispin Flowerday (not receiving bugmail) 2006-02-09 22:15:31 UTC
I doubt this applies to spatial windows, I only think they should work if the currently focused window has back or forward buttons in them (which of course the spatial ones don't)
Comment 3 Christian Neumair 2006-07-09 17:22:20 UTC
Created attachment 68680 [details] [review]
Proposed patch

This patch is based on Epiphany's implementation of extra keybindings. It makes Nautilus react to several XF86XK keybindings. Unfortunately, I have no multimedia keyboard, and XTestFakeKeyEvent didn't like XF86XK_Back and friends, so it remains untested until any of you who is interested in getting this into Nautilus applies the patch and tests as many keybindings as possible.
Comment 4 Christian Neumair 2006-07-09 17:24:24 UTC
CCing Philip Langdale  <philipl@mail.utexas.edu> who is responsible for the Ephy implementation - maybe you can test it?

Updating bug status.
Comment 5 Philip Langdale 2006-07-10 15:19:01 UTC
The patch looks correct except that you're asserting that (action != NULL) twice in the key event handler for nautilus_navigation_window.

It'll probably be a while before I can actually test it out - hope someone else can step in for that.
Comment 6 Christian Neumair 2006-12-21 19:53:43 UTC
Ping.
Comment 7 Andreas Köhler 2006-12-26 12:09:39 UTC
Great, the patch basically works :)

I used nautilus 2.16.3. The patch did not apply cleanly, but that is easy to fix.
More importantly, the #ifndef check in src/nautilus-window.c should be replaced by #ifdef.

Thanks!
Comment 8 Christian Neumair 2006-12-26 18:12:25 UTC
Created attachment 78916 [details] [review]
Proposed patch #2

Andreas: Thanks for your testing efforts!

I've also submitted this patch to nautilus-list for review:
http://mail.gnome.org/archives/nautilus-list/2006-December/msg00109.html
Comment 9 Christian Neumair 2007-01-11 19:17:59 UTC
Committed, fixed, closing.