Bug 410986 - Part 4: Switch the shortcut to Cmd+Option+Shift+V on Mac; r,a=bzbarsky

This commit is contained in:
Ehsan Akhgari 2010-09-28 20:33:22 -04:00
parent c7f0714a47
commit ea8c48a6c9
2 changed files with 7 additions and 1 deletions

View File

@ -158,6 +158,8 @@
<handler event="keypress" key="u" modifiers="control" command="cmd_deleteToBeginningOfLine"/>
<handler event="keypress" key="w" modifiers="control" command="cmd_deleteWordBackward"/>
<handler event="keypress" key="v" modifiers="control" command="cmd_scrollPageDown"/>
<handler event="keypress" key="v" command="cmd_pasteNoFormatting" modifiers="accel,alt,shift"/>
</handlers>
</binding>

View File

@ -32,7 +32,11 @@ SimpleTest.waitForFocus(function() {
function() {
var ed = document.getElementById("editor");
ed.focus();
synthesizeKey("V", {accelKey: true, shiftKey: true});
if (navigator.platform.indexOf("Mac") >= 0) {
synthesizeKey("V", {accelKey: true, shiftKey: true, altKey: true});
} else {
synthesizeKey("V", {accelKey: true, shiftKey: true});
}
is(ed.innerHTML, "green text", "Content should be pasted in plaintext format");
ed.innerHTML = "";