Project

General

Profile

Actions

Bug #13791

open

WApplication::globalKeyWentDown dead as long as WMenu focused by mouse click

Added by Michael Seibt about 1 month ago. Updated 8 days ago.

Status:
Review
Priority:
High
Assignee:
-
Target version:
Start date:
06/19/2025
Due date:
% Done:

0%

Estimated time:

Description

We are porting a desktop application, which must be fully accessible using the keyboard.
Affected: WApplication::globalKeyWentDown of Wt 4.11.4
We have created a main menu using WMenu and added dropdown menus (WPopupMenu) using addMenu(const WString& text, std::unique_ptr<WMenu> menu).
After clicking menu items, key presses are not signaled.
After closing a dropdown by clicking again, key presses are still not signaled.
It needs a click to a "normal" widget, to receive keypresses again.

Fundamentally, menu items must be selectable using arrow keys and the Enter key.
After closing a menu, the focus must return to the previously focused widget.
At least, WApplication::globalKeyWentDown needs to work in order to be able to implement user-friendly menus.
We would greatly appreciate if there will be added generic keyboard support for menus.

Actions #1

Updated by Michael Seibt about 1 month ago

WApplication::globalKeyWentDown is also dead as long as a WLineEdit or a WComboBox -- most likely any WFormWidget -- is focused.
Though the widget's keyWentDown signal is emitted, i.e. the event is not internally consumed by the browser.
So it should be easy to emit globalKeyWentDown regardless of the focused widget.

Actions #2

Updated by Michael Seibt 28 days ago

WDialog::keyWentDown, WDialog::enterPressed, WDialog::escapePressed, etc. are affected as well!

Actions #3

Updated by Matthias Van Ceulebroeck 15 days ago

  • Target version set to 4.12.2
Actions #4

Updated by Romain Mardulyn 9 days ago

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn
Actions #5

Updated by Romain Mardulyn 8 days ago

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)
Actions

Also available in: Atom PDF