Skip to content

Commit

Permalink
Backspace should remove meters (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
aestriplex committed Feb 25, 2025
1 parent 77132de commit 1d1de6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ColumnsPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ static HandlerResult ColumnsPanel_eventHandler(Panel* super, int ch) {
break;
case KEY_F(9):
case KEY_DC:
case KEY_BACKSPACE:
case 127:
case '\b':
if (size > 1 && selected < size)
Panel_remove(super, selected);
result = HANDLED;
Expand Down
3 changes: 3 additions & 0 deletions MetersPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ static HandlerResult MetersPanel_eventHandler(Panel* super, int ch) {
break;
case KEY_F(9):
case KEY_DC:
case KEY_BACKSPACE:
case 127:
case '\b':
if (!Vector_size(this->meters))
break;
if (selected < Vector_size(this->meters)) {
Expand Down

0 comments on commit 1d1de6f

Please sign in to comment.