TextEditor: Shortcuts work again.

[GB.FORM.EDITOR]
* BUG: TextEditor: Shortcuts work again.
This commit is contained in:
gambas 2018-05-24 17:41:49 +02:00
parent 35e9859894
commit 502b403728

View file

@ -218,11 +218,11 @@ Public Sub _new()
$cShortcut = [
"CTRL+A": "SelectAll",
"CTRL+C": "Copy",
"CTRL+Ins": "Copy",
"CTRL+INS": "Copy",
"CTRL+V": "Paste",
"SHIFT+Ins": "Paste",
"SHIFT+INS": "Paste",
"CTRL+X": "Cut",
"SHIFT+Del": "Cut",
"SHIFT+DEL": "Cut",
"CTRL+Y": "Redo",
"CTRL+Z": "Undo"]
Endif
@ -1348,7 +1348,7 @@ Public Sub View_KeyPress()
bCancel = Raise KeyPress
If bCancel Then Goto STOP_EVENT
Try sAction = $cShortcut[Shortcut.FromKey()]
Try sAction = $cShortcut[String.UCase(Shortcut.FromKey())]
If sAction Then
Select Case sAction
Case "Copy"