mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
ui/key: rename ChordEvent to just Event
Event is like pointer.Event and we don't want the stuttering of key.KeyEvent. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -365,7 +365,7 @@ func convertKeyCode(code C.jint) (rune, bool) {
|
||||
func onKeyEvent(env *C.JNIEnv, class C.jclass, handle C.jlong, keyCode, r C.jint, t C.jlong) {
|
||||
w := views[handle]
|
||||
if n, ok := convertKeyCode(keyCode); ok {
|
||||
w.event(key.ChordEvent{Name: n})
|
||||
w.event(key.Event{Name: n})
|
||||
}
|
||||
if r != 0 {
|
||||
w.event(key.EditEvent{Text: string(rune(r))})
|
||||
|
||||
Reference in New Issue
Block a user