Ctrl+a selects all in TextBox
This commit is contained in:
parent
d475e5e2ec
commit
f37101eb9e
@ -171,6 +171,10 @@ func (element *TextBox) HandleKeyDown(key input.Key, modifiers input.Modifiers)
|
|||||||
element.dot,
|
element.dot,
|
||||||
modifiers.Control)
|
modifiers.Control)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case key == 'a' && modifiers.Control:
|
||||||
|
element.dot.Start = 0
|
||||||
|
element.dot.End = len(element.text)
|
||||||
|
|
||||||
case key.Printable():
|
case key.Printable():
|
||||||
element.text, element.dot = textmanip.Type (
|
element.text, element.dot = textmanip.Type (
|
||||||
|
Reference in New Issue
Block a user