TextEditor: In "gambas" mode, ALT+' and ALT+" now respectively add single quotes and double quotes around the current selection.

[GB.FORM.EDITOR]
* NEW: TextEditor: In "gambas" mode, `ALT+'` and `ALT+"` now respectively add single quotes and double quotes around the current selection.
This commit is contained in:
gambas 2021-11-12 21:48:44 +01:00
parent b374ba78de
commit c9517c42ea

View file

@ -55,7 +55,7 @@ Public Sub OnKeyPress(hEditor As TextEditor) As Boolean
If Key.Alt Then
For Each sBraces In ["()", "{}", "[]"]
For Each sBraces In ["()", "{}", "[]", "\"\"", "''"]
If InStr(sBraces, Key.Text) Then
ToggleAroundCurrentWord(hEditor, sBraces)
Return True