From 750419ae9e8b8d8211358e4b4e86151a8a092992 Mon Sep 17 00:00:00 2001 From: Vexatos Date: Sat, 13 May 2023 12:00:20 +0200 Subject: [PATCH 1/2] Added new keybinds to README. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index bc25a667..26183d60 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,8 @@ Lönn supports a couple of keybinds and special mouse functionality, with more t - Left click: Select object - Left click existing selection: Cycle through objects under cursor (smallest to largest) - Left click & drag: Select multiple objects + - Shift + Left click & drag: Add to current selection + - Ctrl + A: Select all objects - Right click selection: Open properties of selected object(s) - Holding Left mouse button over selection: Drag selected objects - Shift + Holding Left mouse button over selection: Axis-bound object dragging From fe23773ffb84d6ca6422899ba54503bd66572732 Mon Sep 17 00:00:00 2001 From: Cruor Date: Sat, 13 May 2023 12:03:38 +0200 Subject: [PATCH 2/2] Only notify tiles about actual selection data changes Caused issues with mouse based movement of tiles --- src/tools/selection.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tools/selection.lua b/src/tools/selection.lua index 7b551f82..44b8914f 100644 --- a/src/tools/selection.lua +++ b/src/tools/selection.lua @@ -1004,14 +1004,15 @@ local function selectionFinished(x, y, fromClick) selectionRectangle = false selectionCompleted = true + local doingMouseActions = movementActive or resizeDirection + -- Special case, otherwise we lose some selections - if not fromClick and not movementActive and not resizeDirection then + if not fromClick and not doingMouseActions then updateSelectionTargetsFromPreviews(addModifier) + tiles.selectionsChanged(selectionTargets) selectionPreviews = {} end - - tiles.selectionsChanged(selectionTargets) end local function resizeStarted(x, y)