Open pavel-krivanek opened 4 years ago
correct form:
GtkApplication ensureRunning.
textEditor := GtkEntry new.
textEditor connectKeyPressEvent: [ :event |
event isEscape ifTrue: [ #Esc traceCr ].
textEditor imContextFilterKeypress: event.
false ].
window := GtkWindow new
title: ' Example';
add: (GtkBox newVertical
packStart: (textEditor)
expand: true
fill: true
padding: 0;
yourself);
showAll
If I'm not wrong, when event callback returns false, the default event propagation and processing should continue. It does not seem to work.