Skip to content

Commit

Permalink
Activate hotkeys without alt
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Sep 14, 2020
1 parent ce1d499 commit 7fad5ac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/NCPopupMenu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,17 @@ NCursesEvent NCPopupMenu::wHandleInput( wint_t ch )
event.keySymbol = "BackSpace";
break;

default:
case KEY_RETURN:
event = NCPopup::wHandleInput( ch );
break;

default:
event = wHandleHotkey( ch );

if ( event == NCursesEvent::none )
event = NCPopup::wHandleInput( ch );

break;
}

return event;
Expand Down

0 comments on commit 7fad5ac

Please sign in to comment.