Elias Naur
f110c26e3f
ui/input: hide soft keyboard when focus is lost
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-07-07 15:52:09 +02:00
Elias Naur
31418eefbe
ui/key: rename TextInputClosed to TextInputClose
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-07-07 15:52:09 +02:00
Elias Naur
e862761e17
ui/input: keep default focus on earliest focusable
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-07-02 19:36:45 +02:00
Elias Naur
0b6dd4efd9
ui: change events to have "Event" suffixed, not prefixed
...
Match the Go error naming convention (FooError).
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-06-21 17:14:16 +02:00
Elias Naur
7aa7bb3be4
ui: rename ops to have Op suffixed, not prefixed
...
Match Go's FooError name pattern.
While we're here, rename RedrawOp to InvalidateOp.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-06-21 17:01:45 +02:00
Elias Naur
a35118d522
ui: add package input for merged input
...
To avoid passing a queue type for each kind of input (pointer, key),
introduce package input for mapping a handler key to all input events.
Future input sources can be added without changes to programs, and
as an added bonus, event ordering is preserved across input sources.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-06-08 10:58:57 +02:00