From 395f2890ae40990aff796b60cc9f03c74cae0be4 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Wed, 29 Jul 2026 16:45:01 +0200 Subject: [PATCH] diagrams: use Ctrl+drag to pan (Meta is global on KDE) --- gui/ChatPane.qml | 4 ++-- gui/main-kf5.qml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/ChatPane.qml b/gui/ChatPane.qml index d67f50a..afeb75a 100644 --- a/gui/ChatPane.qml +++ b/gui/ChatPane.qml @@ -1469,7 +1469,7 @@ Item { contentWidth: diagramZoomImg.width contentHeight: diagramZoomImg.height boundsBehavior: Flickable.StopAtBounds - interactive: false // disable default drag — we handle it via Meta+drag + interactive: false // disable default drag — we handle it via Ctrl+drag Image { id: diagramZoomImg @@ -1493,7 +1493,7 @@ Item { property bool panning: false onPressed: function(mouse) { - if (mouse.button === Qt.LeftButton && (mouse.modifiers & Qt.MetaModifier)) { + if (mouse.button === Qt.LeftButton && (mouse.modifiers & Qt.ControlModifier)) { panning = true startX = mouse.x startY = mouse.y diff --git a/gui/main-kf5.qml b/gui/main-kf5.qml index 5bdd3a6..ba56aaa 100644 --- a/gui/main-kf5.qml +++ b/gui/main-kf5.qml @@ -2279,7 +2279,7 @@ ApplicationWindow { contentWidth: diagramZoomImg.width contentHeight: diagramZoomImg.height boundsBehavior: Flickable.StopAtBounds - interactive: false // disable default drag — we handle it via Meta+drag + interactive: false // disable default drag — we handle it via Ctrl+drag Image { id: diagramZoomImg @@ -2302,7 +2302,7 @@ ApplicationWindow { property bool panning: false onPressed: function(mouse) { - if (mouse.button === Qt.LeftButton && (mouse.modifiers & Qt.MetaModifier)) { + if (mouse.button === Qt.LeftButton && (mouse.modifiers & Qt.ControlModifier)) { panning = true startX = mouse.x startY = mouse.y