GTK: fix dismissing the editor with Escape.
Before this commit, the editor was simply hidden, and as a result pressing Escape in the color chooser would leave the latter open.
This commit is contained in:
parent
88d59ea765
commit
4d1bd55cc2
@ -678,7 +678,7 @@ protected:
|
||||
bool on_key_press_event(GdkEventKey *gdk_event) override {
|
||||
if(is_editing()) {
|
||||
if(gdk_event->keyval == GDK_KEY_Escape) {
|
||||
stop_editing();
|
||||
return _gl_widget.event((GdkEvent *)gdk_event);
|
||||
} else {
|
||||
_entry.event((GdkEvent *)gdk_event);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user