mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
LibGUI: Include keyboard modifier state with button on_click calls
This will allow you us to implement special behavior when Ctrl+clicking a button.
This commit is contained in:
parent
3a905aed06
commit
977863ea07
37 changed files with 76 additions and 76 deletions
|
@ -117,7 +117,7 @@ int main(int argc, char** argv)
|
|||
quit_button.set_text("Okay");
|
||||
quit_button.set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fixed);
|
||||
quit_button.set_preferred_size(100, 20);
|
||||
quit_button.on_click = [] {
|
||||
quit_button.on_click = [](auto) {
|
||||
GUI::Application::the().quit(0);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue