Currently, the two shortcut-closing events (Events.ON_CANCEL and Events.ON_CTRL_KEY) are both listening for the ESC key for closing: Events.ON_CANCEL is implemented in popup windows (e.g. process modal dialog, lookup info window etc.), and Events.ON_CTRL_KEY is implemented for closing the whole tab. Because of this, if the USE_ESC_FOR_TAB_CLOSING SysConfig is set to 'Y', we get the following behaviour:
open Order Details
open the lookup of the Product field
press ESC (while the mentioned SysConfig is set)
the lookup and the whole tab is closed at once
expected behaviour: one press of the ESC key should close only the last child, closing the components one by one
This issue many times causes that the users need to reopen the accidentally closed tab.
Providing a video of the bug:
The second video shows, that the expected behaviour is works for the Events.ON_CANCEL event:
Currently, the two shortcut-closing events (Events.ON_CANCEL and Events.ON_CTRL_KEY) are both listening for the ESC key for closing: Events.ON_CANCEL is implemented in popup windows (e.g. process modal dialog, lookup info window etc.), and Events.ON_CTRL_KEY is implemented for closing the whole tab. Because of this, if the USE_ESC_FOR_TAB_CLOSING SysConfig is set to 'Y', we get the following behaviour:
open Order Details
open the lookup of the Product field
press ESC (while the mentioned SysConfig is set)
the lookup and the whole tab is closed at once
expected behaviour: one press of the ESC key should close only the last child, closing the components one by one
This issue many times causes that the users need to reopen the accidentally closed tab.
Providing a video of the bug:
The second video shows, that the expected behaviour is works for the Events.ON_CANCEL event:
Mattermost thread (contains suggested solutions): https://mattermost.idempiere.org/idempiere/pl/yirwn1ns3fdsujanactsjhg4aa