Skip to content

Commit

Permalink
Merge pull request #11 from bloznelis/hotfix/handle-backspace-on-xterm
Browse files Browse the repository at this point in the history
Handle backspace on xtrem
  • Loading branch information
bloznelis committed May 13, 2022
2 parents 7a1d268 + 0faa6db commit 75d2ec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.state = initWordCountBasedTest(state.settings)
return m, nil

case "backspace":
case "backspace", "ctrl+h":
state.base = state.base.handleBackspace()
m.state = state

Expand Down Expand Up @@ -110,7 +110,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.state = initTimerBasedTest(state.settings)
return m, nil

case "backspace":
case "backspace", "ctrl+h":
state.base = state.base.handleBackspace()
m.state = state

Expand Down

0 comments on commit 75d2ec2

Please sign in to comment.