diff options
Diffstat (limited to 'widgets/account-wizard.go')
-rw-r--r-- | widgets/account-wizard.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/account-wizard.go b/widgets/account-wizard.go index d7cda2d8..3673ed1c 100644 --- a/widgets/account-wizard.go +++ b/widgets/account-wizard.go @@ -689,8 +689,7 @@ func (wizard *AccountWizard) Focus(focus bool) { func (wizard *AccountWizard) Event(event tcell.Event) bool { interactive := wizard.getInteractive() - switch event := event.(type) { - case *tcell.EventKey: + if event, ok := event.(*tcell.EventKey); ok { switch event.Key() { case tcell.KeyUp: fallthrough |