ragardner / tksheet

Python tkinter table widget for displaying tabular data
https://pypi.org/project/tksheet/
MIT License
408 stars 50 forks source link

Keypad enter button ignored #220

Closed Myoldmopar closed 7 months ago

Myoldmopar commented 7 months ago

Hello, first, I am super happy to be using tksheet. I'm working on bumping up to 7.0, looks like some great updates.

I'm not sure if this is "as-designed", or if it was always like this or if it is new behavior, but when I am entering data into a tksheet, the enter key over on my numeric keypad is not recognized as a submit button. I tried running the basic usage example here, with 7.0.0, and if I go through and try to enter numeric data into the cells, and use the enter key over there, it won't complete the edit. I have to move over and use the normal enter key.

Apologies if this is known or intentional, I've been scanning docs and haven't noticed anything about it. And entering numeric data into the sheet seems like a typical behavior where you'd want that enter key operating.

Thank you!

ragardner commented 7 months ago

Hi there,

Thanks for your report, this was neither known nor intentional so I really appreciate you letting me know!

I unfortunately do not have a keyboard with a numpad to test this at the moment but it's possibly fixed in 7.1.8 where I added the bindings "<KP_Enter>" for closing the cell text editor and also "<Alt-KP_Enter>" for creating a new line in the cell text editor.

I have no real idea if these bindings will work sorry, I am following guidance on this question: https://stackoverflow.com/questions/74889898/numeric-enter-key-not-binding-in-python-tkinter-application-in-raspberrypi-os

If you want to, let me know if they don't work and I'll try something else

Here is the changelog for 7.1.8:

Version 7.1.8

Fixed:

Addressed:

Added:

Removed:

Myoldmopar commented 7 months ago

Can confirm! With 7.1.8, the key pad enter key is working happily, so I can rapidly enter numeric data into cells. Thanks! I'll close this issue.