Skip to content

Commit

Permalink
Drop Down Menu: allow right clicks to dismiss the window (fixes #2910)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Apr 16, 2018
1 parent 0294bd8 commit 30257af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/dialogs/drop_down_menu.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 30257af

Please sign in to comment.