From: "Lars M." Date: 2003-01-04T01:53:48+09:00 Subject: [FXRuby] - Catching keypresses Hi, I want my FXRuby application to close when the user hits any key (the application does not require any other interaction at all). I tried to connect the FXMainWindow with "SEL_KEYPRESS", but that "event" does never occur. I can, however, successfully connect an FXLabel widget with "SEL_LEFTBUTTONPRESS" and make the application quit when the user clicks on the label. Oddly enough I cannot connect the FXLabel widget with "SEL_CLICKED". I have found a list of selector types here: http://microtechnique.epfl.ch/~dgehrige/foxdoc/group__fxdefs__0.html#a0a193 So how can I make my application quit when any key is pressed? Thanks for any help in advance. Kind Regards, -Lars