summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/exline.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/widgets/exline.go b/widgets/exline.go
index e0954d7..77f1414 100644
--- a/widgets/exline.go
+++ b/widgets/exline.go
@@ -126,10 +126,8 @@ func (ex *ExLine) Event(event tcell.Event) bool {
 		case tcell.KeyEsc, tcell.KeyCtrlC:
 			ex.ctx.HideCursor()
 			ex.cancel()
-		default:
-			if event.Rune() != 0 {
-				ex.insert(event.Rune())
-			}
+		case tcell.KeyRune:
+			ex.insert(event.Rune())
 		}
 	}
 	return true