aboutsummaryrefslogtreecommitdiffstats
path: root/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui.go')
-rw-r--r--ui.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui.go b/ui.go
index 7472dcd..e32d20f 100644
--- a/ui.go
+++ b/ui.go
@@ -37,6 +37,8 @@ func (ui UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg.String() {
case "ctrl+c", "Q":
return ui, tea.Quit
+ case "+":
+ ui.calc.add()
case "backspace":
if len(ui.calc.buffer) > 0 {
ui.calc.buffer = ui.calc.buffer[:len(ui.calc.buffer)-1]