From d45cdc167a697b05388100c4aed72cb4dbeb4188 Mon Sep 17 00:00:00 2001 From: AlexKnauth Date: Thu, 28 Mar 2024 12:07:10 -0400 Subject: [PATCH] Ctrl-click alternative to Right-click --- src/timer_form.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timer_form.rs b/src/timer_form.rs index 8ad03c7..8b3a695 100644 --- a/src/timer_form.rs +++ b/src/timer_form.rs @@ -13,7 +13,7 @@ use druid::{ widget::{Controller, Flex}, AppDelegate, AppLauncher, BoxConstraints, Command, DelegateCtx, Env, Event, EventCtx, FileDialogOptions, FileInfo, FileSpec, LayoutCtx, LifeCycle, LifeCycleCtx, LocalizedString, - Menu, MenuItem, MouseButton, Point, RenderContext, Selector, Size, UpdateCtx, Widget, + Menu, MenuItem, Point, RenderContext, Selector, Size, UpdateCtx, Widget, WidgetExt, WindowDesc, WindowId, WindowLevel, }; use livesplit_core::{ @@ -135,7 +135,7 @@ impl> Widget for WithMenu { } } Event::MouseUp(event) => { - if event.button == MouseButton::Right + if (event.button.is_right() || (event.button.is_left() && event.mods.ctrl())) && data.run_editor.is_none() && data.layout_editor.is_none() && data.settings_editor.is_none()