Skip to content

Commit

Permalink
Code editor string completion fix (surge-synthesizer#7894)
Browse files Browse the repository at this point in the history
Fixes string completion on all keyboard layouts. hopefully
  • Loading branch information
blancoberg authored Dec 3, 2024
1 parent dca86f3 commit 5c7355e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/surge-xt/gui/overlays/LuaEditors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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("'");
}
Expand Down

0 comments on commit 5c7355e

Please sign in to comment.