Refactor ESC/Alt+X Shortcut for Closing Tabs

Description

Currently the info window supports closing the tab with ESC shortcut. This functionality greatly speeds up the work with info windows, and should be added to all tabs/windows. This would unify the usage of the ESC shortcut across iDempiere.

This ticket includes the following changes:

  • implement closing tabs with shortcut for missing types ( )

  • removes default ESC shortcut on info windows if rendered in tab (by default, use ESC only if it’s rendered in popup window)

  • add SysConfig to switch between Alt+X and ESC shortcut for tab closing

Environment

None

Activity

Diego Ruiz 
December 8, 2023 at 12:56 PM

Issues found during the test day

When Alt+X is pressed, high transaction windows such as BP are not closed.

  • If you hit ESC in those cases, the whole window is closed, not only the Find Dialog

  • When you open an infowindow, for instance Sales Order > BP Info window and press ALT+X the window is closed and the info window remains open

Peter Takacs 
July 11, 2023 at 8:31 AM

Documentation created:

Peter Takacs 
July 10, 2023 at 2:27 PM

Thank you, fixed:

Carlos Ruiz 
July 10, 2023 at 12:42 PM

The class is WPerformanceDetail

Carlos Ruiz 
July 10, 2023 at 12:36 PM

Found a new form that is not closing with Alt+x or Escape:

in test.idempiere.org

  • log in as GardenWorld Admin

  • click on the Invoice Revenue graphic of the Performance dashboard

  • a form is opened with a chart

  • it cannot be closed with shortcut

Details

Assignee

Reporter

Fix versions

Priority

Created June 28, 2023 at 1:29 PM
Updated December 9, 2023 at 10:04 AM