Domanda

The documantation about entries in Gtk2Hs has the entry about the Event onEntryActivate, which is triggered when the user presses enter within the entry field. This seems like something you want for most of your entries. So why is this in the Deprecated section?

È stato utile?

Soluzione

My guess is that these "special" events are all deprecated and instead the generic onfuncion should be used. In this case the it would be on yourEntry entryActivate doSomething.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top