Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIMenu key fix #68809

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix
  • Loading branch information
lispcoc committed Oct 22, 2023
commit bd3f8556f935f10fddc4d23d611bf7b42aa269d6
4 changes: 2 additions & 2 deletions src/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1129,8 +1129,8 @@ void uilist::query( bool loop, int timeout )
recalc_start = true;
} else if( filtering && ret_act == "UILIST.FILTER" ) {
inputfilter();
} else if( !categories.empty() && ( ret_act == "LEFT" || ret_act == "RIGHT" ) ) {
current_category += ret_act == "LEFT" ? -1 : 1;
} else if( !categories.empty() && ( ret_act == "UILIST.LEFT" || ret_act == "UILIST.RIGHT" ) ) {
current_category += ret_act == "UILIST.LEFT" ? -1 : 1;
if( current_category < 0 ) {
current_category = categories.size() - 1;
} else if( current_category >= static_cast<int>( categories.size() ) ) {
Expand Down
Loading