mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +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
|
@ -248,7 +248,7 @@ int main(int argc, char** argv)
|
|||
if (first)
|
||||
menu_option.set_checked(true);
|
||||
|
||||
menu_option.on_click = [content = &content, &stack] {
|
||||
menu_option.on_click = [content = &content, &stack](auto) {
|
||||
stack.set_active_widget(content);
|
||||
content->invalidate_layout();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue