Default and cancel buttons work again.

[GB.WEB.GUI]
* BUG: Default and cancel buttons work again.
This commit is contained in:
Benoît Minisini 2022-05-25 20:40:31 +02:00
parent 8ef2747def
commit d2b82a2735
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,6 @@
# Gambas Project File 3.0
Title=Web application development using processes as session
Startup=Webform3
Startup=Webform1
Icon=.hidden/webform.png
Version=3.17.90
VersionFile=1

View file

@ -1531,6 +1531,9 @@ Private Sub DisableShortcuts()
Next
Endif
If $iDefault Then cShortcut["ENTER"] = True
If $iCancel Then cShortcut["ESCAPE"] = True
If cShortcut.Count = 0 Then Return
_AddJavascript("gw.shortcuts = " & JS(cShortcut))