mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
io/key: [API] introduce FocusFilter for matching focus and editor events
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -128,6 +128,9 @@ type EditEvent struct {
|
||||
Text string
|
||||
}
|
||||
|
||||
// FocusFilter matches [FocusEvent]s.
|
||||
type FocusFilter struct{}
|
||||
|
||||
// InputHint changes the on-screen-keyboard type. That hints the
|
||||
// type of data that might be entered by the user.
|
||||
type InputHint uint8
|
||||
@@ -357,6 +360,8 @@ func (SoftKeyboardCmd) ImplementsCommand() {}
|
||||
func (SelectionCmd) ImplementsCommand() {}
|
||||
func (SnippetCmd) ImplementsCommand() {}
|
||||
|
||||
func (FocusFilter) ImplementsFilter() {}
|
||||
|
||||
func (m Modifiers) String() string {
|
||||
var strs []string
|
||||
if m.Contain(ModCtrl) {
|
||||
|
||||
Reference in New Issue
Block a user