Project

General

Profile

Actions

Bug #14482

closed

WApplication::focusedWidget is unreliable

Added by Michael Seibt 27 days ago. Updated 7 days ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
04/17/2026
Due date:
% Done:

0%

Estimated time:

Description

Affected: WApplication::focusedWidget and WApplication::focusChanged_ of Wt 4.13.0
WApplication::focusedWidget often returns nullptr although a WFormWidget has the focus.
There seems to be a race condition in the sequence of "lost/got focus" events.
It does not matter how the widgets are focused (click, Tab, setFocus()).

In addition, I wonder why WApplication::focusChanged_ is emitted on every key event.

Slightly related to Improvements #14480: Handle focus for all widgets.

Actions #1

Updated by Romain Mardulyn 26 days ago

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

Updated by Romain Mardulyn 24 days ago

  • Target version set to 4.13.2
Actions #3

Updated by Romain Mardulyn 24 days ago

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

Updated by Raf Pauwels 8 days ago

  • Assignee set to Raf Pauwels
Actions #5

Updated by Raf Pauwels 8 days ago

  • Status changed from Review to Resolved
  • Assignee changed from Raf Pauwels to Romain Mardulyn
Actions #6

Updated by Romain Mardulyn 8 days ago

  • Status changed from Resolved to Implemented @Emweb
Actions #7

Updated by Romain Mardulyn 7 days ago

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: Atom PDF