[v3 linux] stop key-press event propagation

This commit is contained in:
Travis McLane
2023-11-06 10:49:14 -06:00
parent f122db2e7b
commit 9f6cd35155
+2 -2
View File
@@ -1038,13 +1038,13 @@ func onKeyPressEvent(widget *C.GtkWidget, event *C.GdkEventKey, userData unsafe.
windowID := uint(*((*C.uint)(userData)))
accelerator, ok := getKeyboardState(event)
if !ok {
return C.gboolean(0)
return C.gboolean(1)
}
windowKeyEvents <- &windowKeyEvent{
windowId: windowID,
acceleratorString: accelerator,
}
return C.gboolean(0)
return C.gboolean(1)
}
func getKeyboardState(event *C.GdkEventKey) (string, bool) {