Closed
Bug 129413
Opened 24 years ago
Closed 24 years ago
If I am using twm with NoTitleFocus, the keyboard does not work.
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Core
DOM: UI Events & Focus Handling
Tracking
()
People
(Reporter: marc, Assigned: joki)
Details
If I am using twm with NoTitleFocus, the keyboard does not work. I
cannot scroll, use menus, fill in the location bar or forms, etc.
Such functions work fine with the mouse.
With twm NoTitleFocus, no X FocusIn or FocusOut events are ever
delivered to the application. PresShell::HandleEvent decides where to
deliver NS_IS_KEY_EVENT() events based on the content filled in by
nsEventStateManager::GetFocusedContent(). However, unless an
NS_GOTFOCUS event, which is delivered as a result of an X FocusIn
event, is processed by nsEventStateManager::PreHandleEvent(),
mCurrentFocus will never be set, and
nsEventStateManager::GetFocusedContent() will always return nsnull.
Because no keyboard event should ever be received by the application
unless it has focus (implicitly or explicitly), I believe the correct
fix is to notice in nsEventStateManager::PreHandleEvent() when a key
is pressed (I'm not sure if this is NS_KEY_PRESS or NS_KEY_DOWN) but
mCurrentFocus is nsnull, and to set mCurrentFocus as if NS_GOTFOCUS
was received.
Note: I have used "Platform: All" and "OS: All" because there is no
way for me to say that this bug affects all Platforms and OSs running
X. I have verified the bug on RedHat Linux 7.1 and Solaris 8.
*** This bug has been marked as a duplicate of 78928 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Updated•24 years ago
|
QA Contact: madhur → rakeshmishra
Updated•23 years ago
|
QA Contact: rakeshmishra → trix
Updated•7 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•