Drop Down Menu: allow right clicks to dismiss the window (fixes #2910)
This commit is contained in:
parent
a565e9259f
commit
4c9ba39a76
1 changed files with 3 additions and 0 deletions
|
@ -172,6 +172,9 @@ void drop_down_menu::pre_show(window& window)
|
||||||
window.connect_signal<event::SDL_LEFT_BUTTON_UP>(
|
window.connect_signal<event::SDL_LEFT_BUTTON_UP>(
|
||||||
std::bind(&click_callback, std::ref(window), keep_open_, _3, _4, _5), event::dispatcher::front_child);
|
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.
|
// Handle embedded button toggling.
|
||||||
// For some reason this works as a listbox value callback but don't ask me why.
|
// For some reason this works as a listbox value callback but don't ask me why.
|
||||||
// - vultraz, 2017-02-17
|
// - vultraz, 2017-02-17
|
||||||
|
|
Loading…
Add table
Reference in a new issue