Closed Bug 430163 Opened 16 years ago Closed 15 years ago

Implement GetToggledKeyState on OS/2

Categories

(Core Graveyard :: Widget: OS/2, defect)

x86
OS/2
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mozilla, Assigned: dragtext)

Details

(Keywords: fixed1.9.1)

Attachments

(1 file)

Bug 377478 a long time ago implemented nsWindow::GetToggledKeyState for other platforms but didn't even add a no-op function for OS/2. I think I looked at this kind of keyboard readout at some point, maybe I can come up with something.
This should be closed as WONT_FIX or maybe WASTE_OF_TIME.  I can't find a single call to this method anywhere.  If it were actually used, it would be trivial to implement - but why bother?
I think I wanted to use it for something when I filed the bug but obviously never did. It could also be that some code outside the Mozilla trees (XULRunner apps, extensions) try to use it because it's part of nsIWidget.

And wasting of time can still be fun...
(In reply to comment #2)
> It could also be that some code outside the Mozilla trees (XULRunner
> apps, extensions) try to use it because it's part of nsIWidget.

I checked the code for TB & SM, plus searched for add-ons that mentioned this feature.  All I found was one add-on that's now obsolete.

Be that as it may, an implementation is attached...
Attachment #384568 - Flags: review?(mozilla)
Attachment #384568 - Flags: review?(mozilla) → review+
Comment on attachment 384568 [details] [diff] [review]
implements nsWindow::GetToggledKeyState

Thanks, looks good.
Pushed to trunk: http://hg.mozilla.org/mozilla-central/rev/6ac21b65f123

I'm going to wait a bit and push it to the 1.9.1 branch in a few hours, if nothing bad happens.
Assignee: mozilla → dragtext
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Rich/Peter,

Would you be willing to verify the fix for this bug on latest branch 1.9.1 as
it's on OS/2?

Thanks
Aaron, don't waste your time waiting for verification of OS/2 bugs. We currently don't do nightly builds, so this can take any amount of time. (We could skip fixed1.9.1 and directly go to verified1.9.1 if that helps you procedurally.)
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: