! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Support XF86Back and Forward keys
Status:
RESOLVED: MOVED
Severity:
enhancement

Comments

Description Mike Massonnet editbugs 2012-10-15 20:51:24 CEST
Hi,

I know Thunar has already a bunch of shortcut to browse a tree, but it would be nice to add XF86Back and XF86Forward to go back and forth.

Cheers,
Mike
Comment 1 Mike Massonnet editbugs 2012-10-16 00:02:47 CEST
Created attachment 4664 
0001-Use-multimedia-keys-Back-and-Forward-for-moving-in-t.patch

Ok, setting more than >1 shortcuts (accels) to an action just got complicated with GTK+.

Finally looking at the code of our rival (to not name it =)), where it actually works with the default shortcut Alt+Left/Right through a GtkActionGroup (just like it's supposed to be done with GTK+), it furtermore listens to key-press events on the window itself. Should it be done the same? There is really no good way to handle multiple shortcuts for a unique action.

See patch attached, the code has an #ifdef HAVE_X11_XF86KEYSYM_H, and uses the XF86XK_Back/Forward keysyms. If such a key is pressed, it grabs the pointer on the action-group (which is available from the window class), get the action and activate it (if sensitive).
Comment 2 Mike Massonnet editbugs 2012-10-16 00:06:27 CEST
Created attachment 4665 
0001-Use-multimedia-keys-Back-and-Forward-for-moving-in-t.patch
Comment 3 Mike Massonnet editbugs 2012-10-16 00:09:07 CEST
Created attachment 4666 
0001-Use-multimedia-keys-Back-and-Forward-bug-9378.patch
Comment 4 Nick Schermer editbugs 2012-10-24 15:11:43 CEST
Multimedia keys work fine with menu accelerators. Problem is that a patch like this (hardcoding) can possibly lead to conflicts with daemons like music players, xfsettingsd etc.
Comment 5 b3nmore 2012-11-13 16:51:06 CET
I'd like to see this feature. It would unify the way (web|file) browsing works. Btw. and just in case it got confused: there are different keysyms for browsers (XF86Back, XF86Forward) and multimedia (XF86AudioPrev, XF86AudioNext).
Comment 6 Git Bot editbugs 2020-05-26 23:12:38 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/44.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #9378

Reported by:
Mike Massonnet
Reported on: 2012-10-15
Last modified on: 2020-05-26

People

Assignee:
Jannis Pohlmann
CC List:
2 users

Version

Version:
unspecified

Attachments

Additional information