From 42f1ff54c3139c03eb77506f4ad103194356bf4e Mon Sep 17 00:00:00 2001 From: blancoberg Date: Tue, 3 Dec 2024 07:36:52 +0100 Subject: [PATCH] code editor string completion Fixes string completion on all keyboard layouts. hopefully --- src/surge-xt/gui/overlays/LuaEditors.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/surge-xt/gui/overlays/LuaEditors.cpp b/src/surge-xt/gui/overlays/LuaEditors.cpp index 8a718aae77c..93bfa7942d2 100644 --- a/src/surge-xt/gui/overlays/LuaEditors.cpp +++ b/src/surge-xt/gui/overlays/LuaEditors.cpp @@ -293,11 +293,11 @@ bool CodeEditorContainerWithApply::keyPressed(const juce::KeyPress &key, juce::C // handle string completion - else if (keyCode == 50) + else if (key.getTextCharacter() == 34) { return this->autoCompleteStringDeclaration("\""); } - else if (keyCode == 39) + else if (key.getTextCharacter() == 39) { return this->autoCompleteStringDeclaration("'"); }