'Tkinter vs Linux (ubuntu/Mint) <KP_Enter> not enabled by default

On Windows the events of the 'Return' key by default are already linked to the <KP_Enter> key. For example selecting a combobox item, or closing a mesagebox

Here I use Linux Mint x64 Cinnamon 20.2, based on Ubuntu. And the <KP_Enter> key is not linked to the events of the 'Return' key. Is this a bug? Or I need to do some configuration.

example if I try to select an item from the combobox with Enter, it works. But if I press <KP_Enter> (numeric enter) nothing happens


If this is a bug, where can I report it?



Solution 1:[1]

Key Pad Enter (KP_Enter) does not work on Ubuntu. Let me know if you find an alternative.

This is the archived list of predefined events and it is listed. Again, if there is an alternative let us know.

https://web.archive.org/web/20190512164300id_/http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/event-types.html

Solution 2:[2]

from my knowledge of free pascal programming

in windows : Enter(or return key) is mapped to one key VK_RETURN

in Linux : Enter is mapped to 2 keys

  1. for keypad(numeric) to XK_KP_Enter
  2. for left return XK_RETURN

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Bhavani
Solution 2 brahim12