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
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).
Created attachment 4665 0001-Use-multimedia-keys-Back-and-Forward-for-moving-in-t.patch
Created attachment 4666 0001-Use-multimedia-keys-Back-and-Forward-bug-9378.patch
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.
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).
-- 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