mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
ui/text: unexport Editor.Command
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -99,7 +99,7 @@ func (e *Editor) Update(c *ui.Config, q input.Events) {
|
|||||||
case key.Focus:
|
case key.Focus:
|
||||||
e.focused = ke.Focus
|
e.focused = ke.Focus
|
||||||
case key.Chord:
|
case key.Chord:
|
||||||
if e.Command(ke) {
|
if e.command(ke) {
|
||||||
stop = true
|
stop = true
|
||||||
scrollTo = true
|
scrollTo = true
|
||||||
}
|
}
|
||||||
@@ -495,7 +495,7 @@ func (e *Editor) scrollToCaret() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *Editor) Command(k key.Chord) bool {
|
func (e *Editor) command(k key.Chord) bool {
|
||||||
if !e.focused {
|
if !e.focused {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user