Keyboard support in CASMSIM

I added support for keyboard events to operate the calculator, configurable by the KML file. However, some keys such as enter, tab, and the arrows don’t work because GTK+ usurps them for keyboard navigation (accessibility). I need to figure out how to disable that (as a configurable option). For an RPN calculator, you really want the enter key to press the calculator’s enter button, especially when using the numeric keypad.

I searched the gtk-app-devel mailing list archive, and found lots of discussion about how keyboard navigation should work, but nothing on how to circumvent it when it’s not wanted.

Update: I figured out that I just need to have the signal callback return TRUE. The documentation on callback functions is a bit weak.


No Responses to “Keyboard support in CASMSIM”  

  1. No Comments

Leave a Reply