treesheets icon indicating copy to clipboard operation
treesheets copied to clipboard

Shortcuts for switching between documents/tabs not working

Open tomatic opened this issue 1 year ago • 3 comments

I'm using TreeSheets Nov 13 2023 on Kubuntu 22.10 and I think I've found a bug.

The menu items View > Switch to next file/tab and View > Switch to previous file/tab work when used via the menu, but keyboard shortcuts don't work (do nothing). The switch to previous menu item actually already seems to have the shortcut CTRL+SHIFT+TAB assigned to it by default, but it doesn't work. I assigned CTRL+TAB to the switch to next item but that doesn't work either. The bindings also do not show next to the menu items.

To test, I assigned the shortcut CTRL+SHIFT+F12 to Toggle Zen Mode. That works as expected and the shortcut shows next to the menu item (after a restart).

tomatic avatar Nov 23 '23 08:11 tomatic

I just tested some more and it appears that pressing Ctrl+Tab or Ctrl+Shift+Tab makes navigating the sheet with the arrow keys temporarily impossible, i. e. pressing any arrow key does nothing. Only after clicking somewhere in the sheet the arrow keys work again.

tomatic avatar Nov 23 '23 09:11 tomatic

Please see https://github.com/aardappel/treesheets/blob/7471837f2d2a71de51bfeada16b5a52b13e2ce5e/src/document.h#L943C16-L957C34

As long as the underlying framework (wxWidgets) keeps translating Ctrl+A - Ctrl+Z to the corresponding ASCII control characters under Linux, there is not much we can do about it, I guess?

tobiolo avatar Nov 25 '23 13:11 tobiolo

Just for the record, I switched to using Ctrl+Shift+F9 and Ctrl+Shift+F10 for previous/next tab as a workaround.

tomatic avatar Dec 06 '23 10:12 tomatic