From c9517c42eaf9360d712d9c0478e107a9fd62f19c Mon Sep 17 00:00:00 2001 From: gambas Date: Fri, 12 Nov 2021 21:48:44 +0100 Subject: [PATCH] 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. --- comp/src/gb.form.editor/.src/TextEditorMode_Gambas.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comp/src/gb.form.editor/.src/TextEditorMode_Gambas.class b/comp/src/gb.form.editor/.src/TextEditorMode_Gambas.class index e32e565d4..7555b0a3d 100644 --- a/comp/src/gb.form.editor/.src/TextEditorMode_Gambas.class +++ b/comp/src/gb.form.editor/.src/TextEditorMode_Gambas.class @@ -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