Changeset 34259 in webkit
- Timestamp:
- May 30, 2008 3:08:31 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r34250 r34259 1 2008-05-30 Alexey Proskuryakov <ap@webkit.org> 2 3 Reviewed by Darin. 4 5 http://bugs.webkit.org/show_bug.cgi?id=7466 6 <rdar://problem/4657563> Use of Ctrl as access key modifier conflicts with Mac OS X 7 emacs-style keybindings 8 9 * fast/events/access-key-self-destruct.html: 10 * fast/forms/access-key.html: 11 * fast/forms/focus-selection-input-expected.txt: 12 * fast/forms/focus-selection-input.html: 13 * fast/forms/legend-access-key.html: 14 * fast/forms/select-accesskey.html: 15 Updated tests to keep passing. 16 17 * fast/forms/select-accesskey-expected.txt: Added. 18 * fast/forms/select-accesskey.html: 19 * platform/mac/fast/forms/select-accesskey-expected.checksum: Removed. 20 * platform/mac/fast/forms/select-accesskey-expected.png: Removed. 21 * platform/mac/fast/forms/select-accesskey-expected.txt: Removed. 22 Updated to keep passing, made text-only. 23 24 * fast/forms/focus-selection-textarea.html: 25 * fast/forms/focus-selection-textarea-expected.txt: 26 Added missing platform-specific logic. 27 1 28 2008-05-29 Maciej Stachowiak <mjs@apple.com> 2 29 -
trunk/LayoutTests/fast/events/access-key-self-destruct.html
r28620 r34259 9 9 layoutTestController.dumpAsText(); 10 10 if (navigator.userAgent.search(/\bMac OS X\b/) != -1) 11 modifier = "ctrlKey";11 modifiers = ["ctrlKey", "altKey"]; 12 12 else 13 modifier = "altKey";14 eventSender.keyDown("a", [modifier]);13 modifiers = ["altKey"]; 14 eventSender.keyDown("a", modifiers); 15 15 } 16 16 } -
trunk/LayoutTests/fast/forms/access-key.html
r28620 r34259 11 11 { 12 12 if (navigator.userAgent.search(/\bMac OS X\b/) != -1) 13 modifier = "ctrlKey";13 modifiers = ["ctrlKey", "altKey"]; 14 14 else 15 modifier = "altKey";16 eventSender.keyDown(key, [modifier]);15 modifiers = ["altKey"]; 16 eventSender.keyDown(key, modifiers); 17 17 } 18 18 function test() -
trunk/LayoutTests/fast/forms/focus-selection-input-expected.txt
r29139 r34259 25 25 26 26 1) Hit tab, the whole phrase "SUCCESS and SUCCESS" should be selected: 27 2) Hit Ctrl- J, the whole phrase "SUCCESS and SUCCESS" should be selected:27 2) Hit Ctrl-Option-J (or Alt-J on Windows), the whole phrase "SUCCESS and SUCCESS" should be selected: 28 28 3) , only the word "SUCCESS" should be selected: 29 29 4) Click in the input field, nothing should be selected: 30 30 5) Click this label, only the word "SUCCESS" should be selected: 31 6) Hit Ctrl- U, the whole phrase "SUCCESS and SUCCESS" should be selected:31 6) Hit Ctrl-Option-U (or Alt-U on Windows), the whole phrase "SUCCESS and SUCCESS" should be selected: 32 32 7) , only the word "SUCCESS" should be selected: 33 33 8) , the whole phrase "SUCCESS and SUCCESS" should be selected: 34 34 35 35 36 9) Hit Ctrl- I, the whole phrase "SUCCESS and SUCCESS" should be selected:36 9) Hit Ctrl-Option-I (or Alt-I on Windows), the whole phrase "SUCCESS and SUCCESS" should be selected: 37 37 38 38 -
trunk/LayoutTests/fast/forms/focus-selection-input.html
r26681 r34259 11 11 return; 12 12 13 var accessKeyModifier = "altKey"; 14 if (navigator.userAgent.search(/\bMac OS X\b/) != -1) { 15 accessKeyModifier = "ctrlKey"; 16 } 13 var accessKeyModifiers = ["altKey"]; 14 if (navigator.userAgent.search(/\bMac OS X\b/) != -1) 15 accessKeyModifiers = ["ctrlKey", "altKey"]; 17 16 18 17 layoutTestController.dumpEditingCallbacks(); … … 27 26 shouldBe("second.selectionStart", "11"); 28 27 shouldBe("second.selectionEnd", "18"); 29 eventSender.keyDown("J", [accessKeyModifier]);28 eventSender.keyDown("J", accessKeyModifiers); 30 29 shouldBe("second.selectionStart", "11"); 31 30 shouldBe("second.selectionEnd", "18"); … … 56 55 shouldBe("sixth.selectionStart", "12"); 57 56 shouldBe("sixth.selectionEnd", "19"); 58 eventSender.keyDown("U", [accessKeyModifier]);57 eventSender.keyDown("U", accessKeyModifiers); 59 58 shouldBe("sixth.selectionStart", "0"); 60 59 shouldBe("sixth.selectionEnd", "19"); … … 76 75 shouldBe("ninth.selectionStart", "12"); 77 76 shouldBe("ninth.selectionEnd", "19"); 78 eventSender.keyDown("I", [accessKeyModifier]);77 eventSender.keyDown("I", accessKeyModifiers); 79 78 shouldBe("ninth.selectionStart", "0"); 80 79 shouldBe("ninth.selectionEnd", "19"); … … 103 102 <br> 104 103 105 2) Hit Ctrl- J, the whole phrase "SUCCESS and SUCCESS" should be selected:104 2) Hit Ctrl-Option-J (or Alt-J on Windows), the whole phrase "SUCCESS and SUCCESS" should be selected: 106 105 <input type="text" id="second" accesskey="j" value="SUCCESS and SUCCESS"> 107 106 <script> … … 147 146 <br> 148 147 149 6) <label id="sixthLabel" for="sixth" accesskey="u">Hit Ctrl- U, the whole phrase "SUCCESS and SUCCESS" should be selected:</label>148 6) <label id="sixthLabel" for="sixth" accesskey="u">Hit Ctrl-Option-U (or Alt-U on Windows), the whole phrase "SUCCESS and SUCCESS" should be selected:</label> 150 149 <input type="text" id="sixth" value="SUCCESS and SUCCESS"> 151 150 <script> … … 184 183 185 184 9) <fieldset> 186 <legend id="eighthLegend" accesskey="i">Hit Ctrl- I, the whole phrase "SUCCESS and SUCCESS" should be selected:</legend>185 <legend id="eighthLegend" accesskey="i">Hit Ctrl-Option-I (or Alt-I on Windows), the whole phrase "SUCCESS and SUCCESS" should be selected:</legend> 187 186 <input type="text" id="ninth" value="SUCCESS and SUCCESS"> 188 187 <script> -
trunk/LayoutTests/fast/forms/focus-selection-textarea-expected.txt
r29139 r34259 25 25 26 26 1) Hit tab, only the word "SUCCESS" should be selected: 27 2) Hit Ctrl- J, only the word "SUCCESS" should be selected:27 2) Hit Ctrl-Option-J (or Alt-J on Windows), only the word "SUCCESS" should be selected: 28 28 3) , only the word "SUCCESS" should be selected: 29 29 4) Click in the input field, nothing should be selected: 30 30 5) Click this label, only the word "SUCCESS" should be selected: 31 6) Hit Ctrl- U, only the word "SUCCESS" should be selected:31 6) Hit Ctrl-Option-U (or Alt-U on Windows), only the word "SUCCESS" should be selected: 32 32 7) , only the word "SUCCESS" should be selected: 33 33 8) , only the word "SUCCESS" should be selected: 34 34 35 35 36 9) Hit Ctrl- I, only the word "SUCCESS" should be selected:36 9) Hit Ctrl-Option-I (or Alt-I on Windows), only the word "SUCCESS" should be selected: 37 37 38 38 -
trunk/LayoutTests/fast/forms/focus-selection-textarea.html
r20407 r34259 11 11 return; 12 12 13 var accessKeyModifiers = ["altKey"]; 14 if (navigator.userAgent.search(/\bMac OS X\b/) != -1) 15 accessKeyModifiers = ["ctrlKey", "altKey"]; 16 13 17 layoutTestController.dumpEditingCallbacks(); 14 18 layoutTestController.dumpAsText(); … … 22 26 shouldBe("second.selectionStart", "11"); 23 27 shouldBe("second.selectionEnd", "18"); 24 eventSender.keyDown("J", ["ctrlKey"]);28 eventSender.keyDown("J", accessKeyModifiers); 25 29 shouldBe("second.selectionStart", "11"); 26 30 shouldBe("second.selectionEnd", "18"); … … 51 55 shouldBe("sixth.selectionStart", "11"); 52 56 shouldBe("sixth.selectionEnd", "18"); 53 eventSender.keyDown("U", ["ctrlKey"]);57 eventSender.keyDown("U", accessKeyModifiers); 54 58 shouldBe("sixth.selectionStart", "11"); 55 59 shouldBe("sixth.selectionEnd", "18"); … … 71 75 shouldBe("ninth.selectionStart", "11"); 72 76 shouldBe("ninth.selectionEnd", "18"); 73 eventSender.keyDown("I", ["ctrlKey"]);77 eventSender.keyDown("I", accessKeyModifiers); 74 78 shouldBe("ninth.selectionStart", "11"); 75 79 shouldBe("ninth.selectionEnd", "18"); … … 97 101 <br> 98 102 99 2) Hit Ctrl- J, only the word "SUCCESS" should be selected:103 2) Hit Ctrl-Option-J (or Alt-J on Windows), only the word "SUCCESS" should be selected: 100 104 <textarea id="second" accesskey="j">FAILURE or SUCCESS</textarea> 101 105 <script> … … 141 145 <br> 142 146 143 6) <label id="sixthLabel" for="sixth" accesskey="u">Hit Ctrl- U, only the word "SUCCESS" should be selected:</label>147 6) <label id="sixthLabel" for="sixth" accesskey="u">Hit Ctrl-Option-U (or Alt-U on Windows), only the word "SUCCESS" should be selected:</label> 144 148 <textarea id="sixth">FAILURE or SUCCESS</textarea> 145 149 <script> … … 178 182 179 183 9) <fieldset> 180 <legend id="eighthLegend" accesskey="i">Hit Ctrl- I, only the word "SUCCESS" should be selected:</legend>184 <legend id="eighthLegend" accesskey="i">Hit Ctrl-Option-I (or Alt-I on Windows), only the word "SUCCESS" should be selected:</legend> 181 185 <textarea id="ninth">FAILURE or SUCCESS</textarea> 182 186 <script> -
trunk/LayoutTests/fast/forms/legend-access-key.html
r28620 r34259 14 14 15 15 if (navigator.userAgent.search(/\bMac OS X\b/) != -1) 16 modifier = "ctrlKey";16 modifiers = ["ctrlKey", "altKey"]; 17 17 else 18 modifier = "altKey";19 eventSender.keyDown("f", [modifier]);18 modifiers = "altKey"; 19 eventSender.keyDown("f", modifiers); 20 20 } 21 21 } -
trunk/LayoutTests/fast/forms/select-accesskey.html
r26681 r34259 3 3 <option>jee 4 4 </select> 5 Press ctrl-ato activate the select. Works as layout test too using eventSender.5 Press Ctrl-Option-A (or Alt-A on Windows) to activate the select. Works as layout test too using eventSender. 6 6 7 7 <div> … … 16 16 <script> 17 17 if (window.eventSender) { 18 var mod = []; 18 layoutTestController.dumpAsText(); 19 20 var modifiers; 19 21 if (navigator.userAgent.search(/\bMac OS X\b/) != -1) 20 mod [0]='ctrlKey';22 modifiers = ['ctrlKey', 'altKey']; 21 23 else 22 mod [0]='altKey';23 eventSender.keyDown('a', mod );24 modifiers = ['altKey']; 25 eventSender.keyDown('a', modifiers); 24 26 } 25 27 </script> -
trunk/WebCore/ChangeLog
r34257 r34259 1 2008-05-30 Alexey Proskuryakov <ap@webkit.org> 2 3 Reviewed by Darin. 4 5 http://bugs.webkit.org/show_bug.cgi?id=7466 6 <rdar://problem/4657563> Use of Ctrl as access key modifier conflicts with Mac OS X 7 emacs-style keybindings 8 9 * page/EventHandler.cpp: 10 (WebCore::EventHandler::handleAccessKey): Use Ctrl+Option for access keys on Mac OS X. 11 1 12 2008-05-30 Maciej Stachowiak <mjs@apple.com> 2 13 -
trunk/WebCore/page/mac/EventHandlerMac.mm
r32700 r34259 48 48 using namespace EventNames; 49 49 50 unsigned EventHandler::s_accessKeyModifiers = PlatformKeyboardEvent::CtrlKey ;50 unsigned EventHandler::s_accessKeyModifiers = PlatformKeyboardEvent::CtrlKey | PlatformKeyboardEvent::AltKey; 51 51 52 52 static RetainPtr<NSEvent>& currentEvent()
Note: See TracChangeset
for help on using the changeset viewer.