[Gambas-bugtracker] Bug #2476: Value not returned by WebForm when closed by Default KeyPress instead of Click
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Tue Feb 8 17:03:18 CET 2022
http://gambaswiki.org/bugtracker/edit?object=BUG.2476&from=L21haW4-
Safiur RAHMAN reported a new bug.
Summary
-------
Value not returned by WebForm when closed by Default KeyPress instead of Click
Type : Bug
Priority : Medium
Gambas version : Master
Product : Web components
Description
-----------
Hi
I have created an Inputbox in following way:
1) InputBox.Class
Static Public Sub _call(Prompt As String, Title As String, Optional {Value} As String) As String
Return FInputBox.Run(Prompt, Title, {Value})
End
2) FInputBox
Public Sub Run(sPrompt As String, sTitle As String, Optional sValue As String) As String
Me.Title = sTitle
lblMessage.Text = sPrompt
If sValue Then
txtValue.Text = sValue
Endif
txtValue.SetFocus
If Me.ShowModal() Then Return $sValue
End
The WebButton "OK" has Defaukt property set true
The WebButton "Cancel" has Cancel propery set true
Now if I click "OK" WebButton the value is returned. However if I press Return then the value is not returned.
System information
------------------
[System]
Gambas=3.16.90
OperatingSystem=Linux
Kernel=5.13.0-27-generic
Architecture=x86_64
Distribution=Ubuntu 20.04.3 LTS
Desktop=UBUNTU:GNOME
Font=Ubuntu,11
Scale=8
Theme=yaru-light
Language=en_US.UTF-8
Memory=3807M
[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.6.0
DBus=libdbus-1.so.3.19.11
GDK2=libgdk-x11-2.0.so.0.2400.32
GDK3=libgdk-3.so.0.2404.16
GStreamer=libgstreamer-1.0.so.0.1602.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2404.16
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.97.0.0
QT5=libQt5Core.so.5.12.8
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6
[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=<user>
DISPLAY=:0
GB_GUI=gb.gtk3
GDMSESSION=<user>
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=45080
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_SHELL_SESSION_MODE=<user>
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK_MODULES=gail:atk-bridge
HOME=<home>
IM_CONFIG_CHECK_ENV=1
IM_CONFIG_PHASE=1
INVOCATION_ID=816859f7d3174d8e86d4dc97d7e6b289
JOURNAL_STREAM=8:302392
LANG=en_US.UTF-8
LC_ADDRESS=bho_NP
LC_ALL=en_US.UTF-8
LC_IDENTIFICATION=bho_NP
LC_MEASUREMENT=bho_NP
LC_MONETARY=bho_NP
LC_NAME=bho_NP
LC_NUMERIC=bho_NP
LC_PAPER=bho_NP
LC_TELEPHONE=bho_NP
LC_TIME=bho_NP
LOGNAME=<user>
MANAGERPID=2294
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=<home>
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
QT_LOGGING_RULES=*.debug=false
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/31706,unix/<hostname>:/tmp/.ICE-unix/31706
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=2478
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<user>
USERNAME=<user>
WINDOWPATH=2
XAUTHORITY=/run/user/1000/gdm/Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-<user>:/etc/xdg
XDG_CURRENT_DESKTOP=<user>:GNOME
XDG_DATA_DIRS=/usr/share/<user>:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=<user>
XDG_SESSION_TYPE=x11
XMODIFIERS=@im=ibus
_=/usr/bin/dbus-update-activation-environment
More information about the Bugtracker
mailing list