From 2984ecc87a8ece6e456795c598b1552494de58f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D0=B8=D0=BC=D1=83=D1=80=20=D0=9A=D0=B0=D1=88=D0=B0?= =?UTF-8?q?=D1=84=D1=83=D1=82=D0=B4=D0=B8=D0=BD=D0=BE=D0=B2?= Date: Sun, 9 Apr 2023 15:03:00 +0300 Subject: [PATCH] fix line endings --- src/input.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/input.cpp b/src/input.cpp index 63ce59b021cb4..fee128ab94542 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -1347,6 +1347,8 @@ action_id input_context::display_menu( const bool permit_execute_action ) ctxt.register_action( "REMOVE" ); ctxt.register_action( "ADD_LOCAL" ); ctxt.register_action( "ADD_GLOBAL" ); + ctxt.register_action( "SCROLL_DOWN" ); + ctxt.register_action( "SCROLL_UP" ); if( permit_execute_action ) { ctxt.register_action( "EXECUTE" ); } @@ -1540,13 +1542,13 @@ action_id input_context::display_menu( const bool permit_execute_action ) if( !filtered_registered_actions.empty() ) { status = s_execute; } - } else if( action == "DOWN" ) { + } else if( action == "DOWN" || action == "SCROLL_DOWN" ) { if( !filtered_registered_actions.empty() && filtered_registered_actions.size() > display_height && scroll_offset < filtered_registered_actions.size() - display_height ) { scroll_offset++; } - } else if( action == "UP" ) { + } else if( action == "UP" || action == "SCROLL_UP" ) { if( !filtered_registered_actions.empty() && scroll_offset > 0 ) { scroll_offset--;