Skip to content

Gmoccapy: Fix arrow key up/down bug in tooleditor #3512

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

Open
wants to merge 1 commit into
base: 2.9
Choose a base branch
from

Conversation

Sigma1912
Copy link
Contributor

@Sigma1912 Sigma1912 commented Jul 8, 2025

The key_press handler inside 'tooledit_widget.py' interferes when using the arrow up/down keys (one keypress results in moving two rows ):

Recording_current

New (fixed) behavior:
Recording

@hansu
Copy link
Member

hansu commented Jul 9, 2025

But with this fix, this handy function wouldn't work any longer:

tool-table

@Sigma1912
Copy link
Contributor Author

Not sure I like it much.
Notice that this 'handy function' makes it impossible to move the cursor inside the cell left or right as it will automatically jump to cell beside it.

@Sigma1912
Copy link
Contributor Author

Also when you hit enter to finish the edit it automatically goes into editing the cell below.

@Sigma1912
Copy link
Contributor Author

What we could possibly do is retain the 'Tab' key function so we can go on editing the cell to right.

@Sigma1912
Copy link
Contributor Author

Tab key enabled:

Recording

@gmoccapy
Copy link
Collaborator

I like Sigmas solution with the Tab key ;-)

@Sigma1912
Copy link
Contributor Author

Demo with Tab and Esc keys:
Recording

@Sigma1912
Copy link
Contributor Author

I'll put the Tab and Esc key feature in a separate PR against master as it is not a bug fix.

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

Successfully merging this pull request may close these issues.

3 participants