From: Brandon S. A. K. <al...@ec...> - 2008-09-17 20:12:11
|
On 2008 Sep 17, at 14:49, Eric wrote: > I am using a textview and I wanted to deal with the escape key being > pressed so I wrote the following: > > Unfortunately now I when I type into the editor text does not appear. > > onKeyPress text_gui $ \e -> > case eventKeyName e of > "Escape" -> do > ... > return True > otherwise -> return True That final "return True" tells Gtk that you've already handled the keypress; if you want the textview to process the key you probably want to return False. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] al...@kf... system administrator [openafs,heimdal,too many hats] al...@ec... electrical and computer engineering, carnegie mellon university KF8NH |