mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
only propagate unmodified right click
This commit is contained in:
@ -113,8 +113,11 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
// check if selection has occurred
|
||||
if (selectionPerformed)
|
||||
{
|
||||
// propagate right click to show context menu on selection
|
||||
return e.Button != MouseButton.Right;
|
||||
// only unmodified right click should show context menu
|
||||
var shouldShowContextMenu = e.Button == MouseButton.Right && !e.ShiftPressed && !e.AltPressed && !e.SuperPressed;
|
||||
|
||||
// stop propagation if not showing context menu
|
||||
return !shouldShowContextMenu;
|
||||
}
|
||||
|
||||
// even if a selection didn't occur, a drag event may still move the selection.
|
||||
|
Reference in New Issue
Block a user