mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v3 linux] stop key-press event propagation
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user