GNOME Bugzilla – Bug 343228
Navigating between tabs with the keyboard
Last modified: 2018-06-29 21:05:45 UTC
Gnucash lack a way to move between tabs with the keyboard. I consider it should use the standard gnome shortcut ctl-pgup/down. Now, only when i am in the accounts tab, ctl-alt-pgdown move to the following tab. Nor this nor the standard ctl-pgup/down work when I am in a register tab.
I hadn't noticed that C-M-PageUp and -PageDown work in the Accounts and Report tabs. But I agree completely, C-PageUp and C-PageDown (without the Alt) should work across *all* tabs. Thanks!
C-PageUp and C-PageDown are used by multiple gtk widgets. Keystrokes are first provided to the selected widget. If that widget does nothing with the keystroke, then the keystroke will be passed in turn to each successive containing widget. In gnucash the widgets used for the account tree page and the register page also use C-PageUp and C-PageDown as a shortcut, so the behavior you see will depend on which widget currently has focus. If the account tree has focus, then it processes the C-PageUp/C-PageDown keystroke and the notebook never sees it. If the notebook has focus, then it is the first widget to see the C-PageUp/C-PageDown key strokes and functions like you would expect. Try clicking on a notebook tab then then typing C-PageUp/C-PageDown. The C-A-Pageup/C-A-PageDown keystrokes are not used by the accounts page and the register page, and will change the notebook tabs.
Clicking on a tab sort of defeats the purpose of the keyboard shortcuts. It appears that the register window is treating C-PageUp and C-PageDown like PageUp and PageDown. It sounds like the solution is for the register window should not be eating the C-PageUp and C-PageDown keys in the first place or at least passing them on to its container. I have no idea what the account tree window is doing with C-PageUp and C-PageDown, but it's different from PageUp and PageDown. I'd suggest trading this questionable shortcut with one we expect. Thanks.
I'm not going to override the standard behavior of the GtkTreeView widget used by the account tree page.
This bug (Bug 343228) appears to have been incorrectly closed as FIXED. Please can this be re-opened and fixed? However, the bug still persists: it has not been fixed. GnuCash's keyboard bindings are at odds with those used by applications that are found by default in many GNOME installations. For example: In Mozilla Firefox, in GNOME Terminal, and in GNOME Files: - Ctrl+PgUp moves to the previous tab. - Ctrl+PgDn moves to the next tab. So, please can GnuCash adopt those bindings, too? N.B. If the GTK tree widget is interfering with the upholding of those conventions, then that suggests a bug in the GTK tree widget.
(Apologies: the second two lines in my previous comment were in the wrong order!)
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=343228. Please update any external references or bookmarks.