WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
24161
listbox-deselect-scroll and listbox-selection-2 have mac specific code
https://bugs.webkit.org/show_bug.cgi?id=24161
Summary
listbox-deselect-scroll and listbox-selection-2 have mac specific code
Scott Violet
Reported
2009-02-25 09:35:12 PST
At a minimum LayoutTests/fast/forms/listbox-deselect-scroll.html should swap meta/control in the events it created. It would be nice if the cell height wasn't hard coded either, but looked up from the option.
Attachments
Swaps meta/control when not run on a Mac.
(1.74 KB, patch)
2009-02-25 12:56 PST
,
Scott Violet
eric
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Scott Violet
Comment 1
2009-02-25 09:36:04 PST
My comment should read, 'swap meta/control when run on windows'.
Scott Violet
Comment 2
2009-02-25 12:56:00 PST
Created
attachment 27978
[details]
Swaps meta/control when not run on a Mac.
Eric Seidel (no email)
Comment 3
2009-02-25 13:11:28 PST
Comment on
attachment 27978
[details]
Swaps meta/control when not run on a Mac. This seems like the wrong way to fix this? Is this test already skipped on Apple's windows build? LayoutTests/platform/win/Skipped Maybe we already have a cleaner way to make these.
Scott Violet
Comment 4
2009-02-25 13:39:19 PST
The consensus seems to be to add a new method to event sending controller that simulates a meta click on a mac and control click on windows.
Kent Tamura
Comment 5
2010-01-17 21:15:47 PST
I'm planing to change the following eventSender functions: - eventSender.mouseDown([buttonNumber [, modifiers]]) - eventSender.mouseUp([buttonNumber [, modifiers]]) The modifiers parameter is similar to modifiers parameter of evenSender.keyDown(). It's an array of strings. A string can be - a concrete modifier key name; "ctrlKey", "shiftKey", "altKey", or "metaKey", or - a functional modifier name; "addSelectionKey", or "rangeSelectionKey". "addSelectionKey" should be an alias of "metaKey" on Mac, "ctrlKey" on Windows. "rangeSelectionKey" is an alias of "shiftKey". Comments?
Kent Tamura
Comment 6
2010-01-17 23:17:22 PST
(In reply to
comment #5
)
> I'm planing to change the following eventSender functions: > - eventSender.mouseDown([buttonNumber [, modifiers]]) > - eventSender.mouseUp([buttonNumber [, modifiers]]) > > The modifiers parameter is similar to modifiers parameter of > evenSender.keyDown(). It's an array of strings. A string can be > - a concrete modifier key name; "ctrlKey", "shiftKey", "altKey", or > "metaKey", or > - a functional modifier name; "addSelectionKey", or "rangeSelectionKey". > "addSelectionKey" should be an alias of "metaKey" on Mac, "ctrlKey" on > Windows. > "rangeSelectionKey" is an alias of "shiftKey".
I implemented it for Mac and works fine. I uploaded a patch on
Bug#33783
.
Kent Tamura
Comment 7
2010-01-24 20:37:03 PST
Now both of the tests should work well on non-Mac.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug