Skip to content

Commit

Permalink
Backspace fix
Browse files Browse the repository at this point in the history
  • Loading branch information
docelic committed Apr 15, 2023
1 parent 43b786e commit 987e33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/textarea.cr
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ module Crysterm
# here.
if k == Tput::Key::Escape
done.try &.call nil, nil
elsif k == Tput::Key::Backspace
elsif k == Tput::Key::Backspace || k == Tput::Key::CtrlH
if @value.size > 0
# TODO if full unicode...
if false
Expand Down

0 comments on commit 987e33d

Please sign in to comment.