-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
input_normal.go
39 lines (31 loc) 路 869 Bytes
/
input_normal.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package oviewer
import "github.com/gdamore/tcell/v2"
// eventNormal represents the normal input mode.
// This is a dummy as it normally does not accept input.
type eventNormal struct {
tcell.EventTime
}
// normal returns normalEvent.
func normal() *eventNormal {
return &eventNormal{}
}
// Mode returns InputMode.
func (e *eventNormal) Mode() InputMode {
return Normal
}
// Prompt returns the prompt string in the input field.
func (e *eventNormal) Prompt() string {
return ""
}
// Confirm returns the event when the input is confirmed.
func (e *eventNormal) Confirm(str string) tcell.Event {
return nil
}
// Up returns strings when the up key is pressed during input.
func (e *eventNormal) Up(str string) string {
return ""
}
// Down returns strings when the down key is pressed during input.
func (e *eventNormal) Down(str string) string {
return ""
}