I want to add a function to my buttonNewWithLabel
, so it reacts to the enter key is pressed and just not only the onClicked
event. I cant find how but should there not be as easy as the onClicked
?
My code peice looks like this:
grt <- labelNew Nothing
str <- entryNew
but <- buttonNewWithLabel "Action"
but `onClicked` function1 str grt
but `onEnterPushed`function1 str grt <--- Something like this ?
Is there such a function in Gtk2Hs
? Or...is there something else I can use?