io/event: move event types from package ui to its own package

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-09-30 15:13:25 +02:00
parent 7a259e68f7
commit e7a97bf176
16 changed files with 107 additions and 94 deletions
+3 -2
View File
@@ -10,8 +10,9 @@ events.
package key
import (
"gioui.org/ui"
"gioui.org/internal/opconst"
"gioui.org/io/event"
"gioui.org/ui"
)
// InputOp declares a handler ready for key events.
@@ -19,7 +20,7 @@ import (
// focused key handler. Set the Focus flag to request
// the focus.
type InputOp struct {
Key ui.Key
Key event.Key
Focus bool
}