mirror of
https://github.com/jroimartin/gocui.git
synced 2025-05-03 22:17:08 +08:00
more
This commit is contained in:
parent
c74848d8ad
commit
8bf4a4666b
4
edit.go
4
edit.go
@ -49,9 +49,9 @@ func simpleEditor(v *View, key Key, ch rune, mod Modifier) bool {
|
|||||||
v.TextArea.ToggleOverwrite()
|
v.TextArea.ToggleOverwrite()
|
||||||
case key == KeyCtrlU:
|
case key == KeyCtrlU:
|
||||||
v.TextArea.DeleteToStartOfLine()
|
v.TextArea.DeleteToStartOfLine()
|
||||||
case key == KeyCtrlA:
|
case key == KeyCtrlA || key == KeyHome:
|
||||||
v.TextArea.GoToStartOfLine()
|
v.TextArea.GoToStartOfLine()
|
||||||
case key == KeyCtrlE:
|
case key == KeyCtrlE || key == KeyEnd:
|
||||||
v.TextArea.GoToEndOfLine()
|
v.TextArea.GoToEndOfLine()
|
||||||
|
|
||||||
// TODO: see if we need all three of these conditions: maybe the final one is sufficient
|
// TODO: see if we need all three of these conditions: maybe the final one is sufficient
|
||||||
|
Loading…
x
Reference in New Issue
Block a user