Project

General

Profile

Actions

Bug #14482

closed
MS RM

WApplication::focusedWidget is unreliable

Bug #14482: WApplication::focusedWidget is unreliable

Added by Michael Seibt 7 months ago. Updated 6 months 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.

RM Updated by Romain Mardulyn 7 months ago Actions #1

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn

RM Updated by Romain Mardulyn 7 months ago Actions #2

  • Target version set to 4.13.2

RM Updated by Romain Mardulyn 7 months ago Actions #3

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

RP Updated by Raf Pauwels 6 months ago Actions #4

  • Assignee set to Raf Pauwels

RP Updated by Raf Pauwels 6 months ago Actions #5

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

RM Updated by Romain Mardulyn 6 months ago Actions #6

  • Status changed from Resolved to Implemented @Emweb

RM Updated by Romain Mardulyn 6 months ago Actions #7

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: PDF Atom