Change ncurses wheel down default button to 5

This commit is contained in:
Maxime Coste 2015-11-05 13:28:58 +00:00
parent 48a296dc71
commit 05f7337eb0
2 changed files with 5 additions and 5 deletions

View File

@ -968,13 +968,13 @@ void NCursesUI::set_ui_options(const Options& options)
enable_mouse_it->value == "yes" or
enable_mouse_it->value == "true");
auto wheel_down_it = options.find("ncurses_wheel_down_button");
m_wheel_down_button = wheel_down_it != options.end() ?
str_to_int_ifp(wheel_down_it->value).value_or(2) : 2;
auto wheel_up_it = options.find("ncurses_wheel_up_button");
m_wheel_up_button = wheel_up_it != options.end() ?
str_to_int_ifp(wheel_up_it->value).value_or(4) : 4;
auto wheel_down_it = options.find("ncurses_wheel_down_button");
m_wheel_down_button = wheel_down_it != options.end() ?
str_to_int_ifp(wheel_down_it->value).value_or(5) : 5;
}
}

View File

@ -114,8 +114,8 @@ private:
void enable_mouse(bool enabled);
bool m_mouse_enabled = false;
int m_wheel_down_button = 2;
int m_wheel_up_button = 4;
int m_wheel_down_button = 5;
bool m_set_title = true;