fix: close Ticket 11 hardening review gaps
This commit is contained in:
@@ -45,6 +45,9 @@ func (p *profilePickerState) close() {
|
||||
}
|
||||
|
||||
func (p *profilePickerState) update(key tea.KeyMsg, snapshot app.Snapshot) tea.Cmd {
|
||||
if key.Type == tea.KeyRunes {
|
||||
key.Runes = []rune(sanitizeUntrustedControls(string(key.Runes)))
|
||||
}
|
||||
switch key.String() {
|
||||
case "up", "ctrl+p":
|
||||
p.move(snapshot, -1)
|
||||
|
||||
Reference in New Issue
Block a user