Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcuts for switching between documents/tabs not working #558

Open
tomatic opened this issue Nov 23, 2023 · 3 comments
Open

Shortcuts for switching between documents/tabs not working #558

tomatic opened this issue Nov 23, 2023 · 3 comments

Comments

@tomatic
Copy link

tomatic commented Nov 23, 2023

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
Copy link
Author

tomatic commented Nov 23, 2023

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.

@tobiolo
Copy link
Collaborator

tobiolo commented Nov 25, 2023

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 tobiolo closed this as completed Nov 25, 2023
@tobiolo tobiolo reopened this Nov 30, 2023
@tomatic
Copy link
Author

tomatic commented Dec 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants