mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 16:57:50 +00:00
Drop Down Menu: allow right clicks to dismiss the window (fixes #2910)
(cherry-picked from commit 30257afd3f9725b1ac54610ef61d14d873057531)
This commit is contained in:
parent
017c3ca9cf
commit
6ea71cf408
@ -172,6 +172,9 @@ void drop_down_menu::pre_show(window& window)
|
||||
window.connect_signal<event::SDL_LEFT_BUTTON_UP>(
|
||||
std::bind(&click_callback, std::ref(window), keep_open_, _3, _4, _5), event::dispatcher::front_child);
|
||||
|
||||
window.connect_signal<event::SDL_RIGHT_BUTTON_UP>(
|
||||
std::bind(&click_callback, std::ref(window), keep_open_, _3, _4, _5), event::dispatcher::front_child);
|
||||
|
||||
// Handle embedded button toggling.
|
||||
// For some reason this works as a listbox value callback but don't ask me why.
|
||||
// - vultraz, 2017-02-17
|
||||
|
Loading…
x
Reference in New Issue
Block a user