mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
ui: merge package input
Event handling is as fundamental as operations, so move the input package declarations to package ui. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+5
-7
@@ -1,18 +1,16 @@
|
||||
// SPDX-License-Identifier: Unlicense OR MIT
|
||||
|
||||
/*
|
||||
Package key implements key and text events and
|
||||
operations.
|
||||
Package key implements key and text events and operations.
|
||||
|
||||
The InputOp operations is used for declaring key
|
||||
input handlers. Use the Queue interface from package
|
||||
input to receive events.
|
||||
The InputOp operations is used for declaring key input handlers. Use
|
||||
an implementation of the Queue interface from package ui to receive
|
||||
events.
|
||||
*/
|
||||
package key
|
||||
|
||||
import (
|
||||
"gioui.org/ui"
|
||||
"gioui.org/ui/input"
|
||||
"gioui.org/ui/internal/opconst"
|
||||
)
|
||||
|
||||
@@ -21,7 +19,7 @@ import (
|
||||
// focused key handler. Set the Focus flag to request
|
||||
// the focus.
|
||||
type InputOp struct {
|
||||
Key input.Key
|
||||
Key ui.Key
|
||||
Focus bool
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user