mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:58:11 +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
|
@ -116,7 +116,7 @@ void TaskbarWindow::create_quick_launch_bar()
|
|||
|
||||
button.set_icon(Gfx::Bitmap::load_from_file(app_icon_path));
|
||||
button.set_tooltip(name);
|
||||
button.on_click = [app_executable] {
|
||||
button.on_click = [app_executable](auto) {
|
||||
pid_t pid = fork();
|
||||
if (pid < 0) {
|
||||
perror("fork");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue