From 14152d0fef8d9416394d3c25a5a4f6b5914d8971 Mon Sep 17 00:00:00 2001 From: Jeremy Behreandt Date: Fri, 11 Oct 2024 13:49:47 -0500 Subject: [PATCH] Right click on harmonies canvas to set background color. --- ok_picker.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ok_picker.lua b/ok_picker.lua index 2604bfc..2c64431 100644 --- a/ok_picker.lua +++ b/ok_picker.lua @@ -1700,7 +1700,9 @@ local function onMouseUpHarmony(event) b8 = string.byte( active.byteStrHarmony, 1 + xIdx * 4, 3 + xIdx * 4) - local useBack = active.useBack + local useBack = event.button == MouseButton.RIGHT + or (event.button == MouseButton.LEFT + and event.ctrlKey) local alphaActive = useBack and active.alphaBack or active.alphaFore