Interpretation of Key field in keypress callback event data
2 views (last 30 days)
Show older comments
In my code I'm using the KeyPressFcn callback of a figure to react to user input. However, I'm not sure how to interpret the Key field of the event data correctly in some cases.
For example, if I hit the # key (qwertz keyboard), I get a Key value of '0' in older versions of MATLAB. In R2025a I get '3'. This however seems to correspond to the key on a US qwerty keyboard.
Is there any information on how to interpret the Key field correctly? And have there been changes in R2025a I'm not aware of?
3 Comments
Answers (0)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!