OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
4 * Copyright (C) 2009 Igalia S.L. | 4 * Copyright (C) 2009 Igalia S.L. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 #include "platform/scroll/Scrollbar.h" | 65 #include "platform/scroll/Scrollbar.h" |
66 #include "public/platform/Platform.h" | 66 #include "public/platform/Platform.h" |
67 #include "wtf/text/AtomicString.h" | 67 #include "wtf/text/AtomicString.h" |
68 | 68 |
69 namespace blink { | 69 namespace blink { |
70 | 70 |
71 using namespace HTMLNames; | 71 using namespace HTMLNames; |
72 | 72 |
73 class EditorInternalCommand { | 73 class EditorInternalCommand { |
74 public: | 74 public: |
75 const char* commandName; | |
75 int idForUserMetrics; | 76 int idForUserMetrics; |
76 bool (*execute)(LocalFrame&, Event*, EditorCommandSource, const String&); | 77 bool (*execute)(LocalFrame&, Event*, EditorCommandSource, const String&); |
77 bool (*isSupportedFromDOM)(LocalFrame*); | 78 bool (*isSupportedFromDOM)(LocalFrame*); |
78 bool (*isEnabled)(LocalFrame&, Event*, EditorCommandSource); | 79 bool (*isEnabled)(LocalFrame&, Event*, EditorCommandSource); |
79 TriState (*state)(LocalFrame&, Event*); | 80 TriState (*state)(LocalFrame&, Event*); |
80 String (*value)(LocalFrame&, Event*); | 81 String (*value)(LocalFrame&, Event*); |
81 bool isTextInsertion; | 82 bool isTextInsertion; |
83 bool shouldFireInputEvent; | |
82 // TODO(yosin) We should have |canExecute()|, which checks clipboard | 84 // TODO(yosin) We should have |canExecute()|, which checks clipboard |
83 // accessibility to simplify |Editor::Command::execute()|. | 85 // accessibility to simplify |Editor::Command::execute()|. |
84 bool allowExecutionWhenDisabled; | 86 bool allowExecutionWhenDisabled; |
85 }; | 87 }; |
86 | 88 |
87 typedef HashMap<String, const EditorInternalCommand*, CaseFoldingHash> CommandMa p; | 89 typedef HashMap<String, const EditorInternalCommand*, CaseFoldingHash> CommandMa p; |
88 | 90 |
89 static const bool notTextInsertion = false; | 91 static const bool notTextInsertion = false; |
90 static const bool isTextInsertion = true; | 92 static const bool isTextInsertion = true; |
91 | 93 |
94 static const bool doNotFireInputEvent = false; | |
95 static const bool shouldFireInputEvent = true; | |
96 | |
92 static const bool allowExecutionWhenDisabled = true; | 97 static const bool allowExecutionWhenDisabled = true; |
93 static const bool doNotAllowExecutionWhenDisabled = false; | 98 static const bool doNotAllowExecutionWhenDisabled = false; |
94 | 99 |
95 // Related to Editor::selectionForCommand. | 100 // Related to Editor::selectionForCommand. |
96 // Certain operations continue to use the target control's selection even if the event handler | 101 // Certain operations continue to use the target control's selection even if the event handler |
97 // already moved the selection outside of the text control. | 102 // already moved the selection outside of the text control. |
98 static LocalFrame* targetFrame(LocalFrame& frame, Event* event) | 103 static LocalFrame* targetFrame(LocalFrame& frame, Event* event) |
99 { | 104 { |
100 if (!event) | 105 if (!event) |
101 return &frame; | 106 return &frame; |
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1472 if (!selection.isNonOrphanedCaretOrRange() || !selection.isContentEditable() ) | 1477 if (!selection.isNonOrphanedCaretOrRange() || !selection.isContentEditable() ) |
1473 return ""; | 1478 return ""; |
1474 Element* formatBlockElement = FormatBlockCommand::elementForFormatBlockComma nd(firstRangeOf(selection).get()); | 1479 Element* formatBlockElement = FormatBlockCommand::elementForFormatBlockComma nd(firstRangeOf(selection).get()); |
1475 if (!formatBlockElement) | 1480 if (!formatBlockElement) |
1476 return ""; | 1481 return ""; |
1477 return formatBlockElement->localName(); | 1482 return formatBlockElement->localName(); |
1478 } | 1483 } |
1479 | 1484 |
1480 // Map of functions | 1485 // Map of functions |
1481 | 1486 |
1482 struct CommandEntry { | |
1483 const char* name; | |
1484 EditorInternalCommand command; | |
1485 }; | |
1486 | |
1487 static const CommandMap& createCommandMap() | 1487 static const CommandMap& createCommandMap() |
1488 { | 1488 { |
1489 // If you add new commands, you should assign new Id to each idForUserMetric s and update MappedEditingCommands | 1489 // If you add new commands, you should assign new Id to each idForUserMetric s and update MappedEditingCommands |
1490 // in chrome/trunk/src/tools/metrics/histograms/histograms.xml. | 1490 // in chrome/trunk/src/tools/metrics/histograms/histograms.xml. |
1491 static const CommandEntry commands[] = { | 1491 static const EditorInternalCommand commands[] = { |
1492 { "AlignCenter", {139, executeJustifyCenter, supportedFromMenuOrKeyBindi ng, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAl lowExecutionWhenDisabled } }, | 1492 { "AlignCenter", 139, executeJustifyCenter, supportedFromMenuOrKeyBindin g, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, shouldFi reInputEvent, doNotAllowExecutionWhenDisabled }, |
1493 { "AlignJustified", {1, executeJustifyFull, supportedFromMenuOrKeyBindin g, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAll owExecutionWhenDisabled } }, | 1493 { "AlignJustified", 1, executeJustifyFull, supportedFromMenuOrKeyBinding , enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, shouldFir eInputEvent, doNotAllowExecutionWhenDisabled }, |
1494 { "AlignLeft", {2, executeJustifyLeft, supportedFromMenuOrKeyBinding, en abledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExe cutionWhenDisabled } }, | 1494 { "AlignLeft", 2, executeJustifyLeft, supportedFromMenuOrKeyBinding, ena bledInRichlyEditableText, stateNone, valueNull, notTextInsertion, shouldFireInpu tEvent, doNotAllowExecutionWhenDisabled }, |
1495 { "AlignRight", {3, executeJustifyRight, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled } }, | 1495 { "AlignRight", 3, executeJustifyRight, supportedFromMenuOrKeyBinding, e nabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, shouldFireIn putEvent, doNotAllowExecutionWhenDisabled }, |
1496 { "BackColor", {4, executeBackColor, supported, enabledInRichlyEditableT ext, stateNone, valueBackColor, notTextInsertion, doNotAllowExecutionWhenDisable d } }, | 1496 { "BackColor", 4, executeBackColor, supported, enabledInRichlyEditableTe xt, stateNone, valueBackColor, notTextInsertion, shouldFireInputEvent, doNotAllo wExecutionWhenDisabled }, |
1497 { "BackwardDelete", {5, executeDeleteBackward, supportedFromMenuOrKeyBin ding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled } }, // FIXME: remove BackwardDelete when Safari for Window s stops using it. | 1497 { "BackwardDelete", 5, executeDeleteBackward, supportedFromMenuOrKeyBind ing, enabledInEditableText, stateNone, valueNull, notTextInsertion, shouldFireIn putEvent, doNotAllowExecutionWhenDisabled }, // FIXME: remove BackwardDelete whe n Safari for Windows stops using it. |
1498 { "Bold", {6, executeToggleBold, supported, enabledInRichlyEditableText, stateBold, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1498 { "Bold", 6, executeToggleBold, supported, enabledInRichlyEditableText, stateBold, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowExecutio nWhenDisabled }, |
1499 { "Copy", {7, executeCopy, supported, enabledCopy, stateNone, valueNull, notTextInsertion, allowExecutionWhenDisabled } }, | 1499 { "Copy", 7, executeCopy, supported, enabledCopy, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, allowExecutionWhenDisabled }, |
1500 { "CreateLink", {8, executeCreateLink, supported, enabledInRichlyEditabl eText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1500 { "CreateLink", 8, executeCreateLink, supported, enabledInRichlyEditable Text, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowEx ecutionWhenDisabled }, |
1501 { "Cut", {9, executeCut, supported, enabledCut, stateNone, valueNull, no tTextInsertion, allowExecutionWhenDisabled } }, | 1501 { "Cut", 9, executeCut, supported, enabledCut, stateNone, valueNull, not TextInsertion, shouldFireInputEvent, allowExecutionWhenDisabled }, |
1502 { "DefaultParagraphSeparator", {10, executeDefaultParagraphSeparator, su pported, enabled, stateNone, valueDefaultParagraphSeparator, notTextInsertion, d oNotAllowExecutionWhenDisabled} }, | 1502 { "DefaultParagraphSeparator", 10, executeDefaultParagraphSeparator, sup ported, enabled, stateNone, valueDefaultParagraphSeparator, notTextInsertion, sh ouldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1503 { "Delete", {11, executeDelete, supported, enabledDelete, stateNone, val ueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1503 { "Delete", 11, executeDelete, supported, enabledDelete, stateNone, valu eNull, notTextInsertion, shouldFireInputEvent, doNotAllowExecutionWhenDisabled } , |
1504 { "DeleteBackward", {12, executeDeleteBackward, supportedFromMenuOrKeyBi nding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllow ExecutionWhenDisabled } }, | 1504 { "DeleteBackward", 12, executeDeleteBackward, supportedFromMenuOrKeyBin ding, enabledInEditableText, stateNone, valueNull, notTextInsertion, shouldFireI nputEvent, doNotAllowExecutionWhenDisabled }, |
1505 { "DeleteBackwardByDecomposingPreviousCharacter", {13, executeDeleteBack wardByDecomposingPreviousCharacter, supportedFromMenuOrKeyBinding, enabledInEdit ableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisable d } }, | 1505 { "DeleteBackwardByDecomposingPreviousCharacter", 13, executeDeleteBackw ardByDecomposingPreviousCharacter, supportedFromMenuOrKeyBinding, enabledInEdita bleText, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllo wExecutionWhenDisabled }, |
1506 { "DeleteForward", {14, executeDeleteForward, supportedFromMenuOrKeyBind ing, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowEx ecutionWhenDisabled } }, | 1506 { "DeleteForward", 14, executeDeleteForward, supportedFromMenuOrKeyBindi ng, enabledInEditableText, stateNone, valueNull, notTextInsertion, shouldFireInp utEvent, doNotAllowExecutionWhenDisabled }, |
1507 { "DeleteToBeginningOfLine", {15, executeDeleteToBeginningOfLine, suppor tedFromMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextIns ertion, doNotAllowExecutionWhenDisabled } }, | 1507 { "DeleteToBeginningOfLine", 15, executeDeleteToBeginningOfLine, support edFromMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInse rtion, shouldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1508 { "DeleteToBeginningOfParagraph", {16, executeDeleteToBeginningOfParagra ph, supportedFromMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1508 { "DeleteToBeginningOfParagraph", 16, executeDeleteToBeginningOfParagrap h, supportedFromMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, n otTextInsertion, shouldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1509 { "DeleteToEndOfLine", {17, executeDeleteToEndOfLine, supportedFromMenuO rKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNo tAllowExecutionWhenDisabled } }, | 1509 { "DeleteToEndOfLine", 17, executeDeleteToEndOfLine, supportedFromMenuOr KeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, shoul dFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1510 { "DeleteToEndOfParagraph", {18, executeDeleteToEndOfParagraph, supporte dFromMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInser tion, doNotAllowExecutionWhenDisabled } }, | 1510 { "DeleteToEndOfParagraph", 18, executeDeleteToEndOfParagraph, supported FromMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsert ion, shouldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1511 { "DeleteToMark", {19, executeDeleteToMark, supportedFromMenuOrKeyBindin g, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExec utionWhenDisabled } }, | 1511 { "DeleteToMark", 19, executeDeleteToMark, supportedFromMenuOrKeyBinding , enabledInEditableText, stateNone, valueNull, notTextInsertion, shouldFireInput Event, doNotAllowExecutionWhenDisabled }, |
1512 { "DeleteWordBackward", {20, executeDeleteWordBackward, supportedFromMen uOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, do NotAllowExecutionWhenDisabled } }, | 1512 { "DeleteWordBackward", 20, executeDeleteWordBackward, supportedFromMenu OrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, sho uldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1513 { "DeleteWordForward", {21, executeDeleteWordForward, supportedFromMenuO rKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNo tAllowExecutionWhenDisabled } }, | 1513 { "DeleteWordForward", 21, executeDeleteWordForward, supportedFromMenuOr KeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, shoul dFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1514 { "FindString", {22, executeFindString, supported, enabled, stateNone, v alueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1514 { "FindString", 22, executeFindString, supported, enabled, stateNone, va lueNull, notTextInsertion, shouldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1515 { "FontName", {23, executeFontName, supported, enabledInEditableText, st ateNone, valueFontName, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1515 { "FontName", 23, executeFontName, supported, enabledInEditableText, sta teNone, valueFontName, notTextInsertion, shouldFireInputEvent, doNotAllowExecuti onWhenDisabled }, |
1516 { "FontSize", {24, executeFontSize, supported, enabledInEditableText, st ateNone, valueFontSize, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1516 { "FontSize", 24, executeFontSize, supported, enabledInEditableText, sta teNone, valueFontSize, notTextInsertion, shouldFireInputEvent, doNotAllowExecuti onWhenDisabled }, |
1517 { "FontSizeDelta", {25, executeFontSizeDelta, supported, enabledInEditab leText, stateNone, valueFontSizeDelta, notTextInsertion, doNotAllowExecutionWhen Disabled } }, | 1517 { "FontSizeDelta", 25, executeFontSizeDelta, supported, enabledInEditabl eText, stateNone, valueFontSizeDelta, notTextInsertion, shouldFireInputEvent, do NotAllowExecutionWhenDisabled }, |
1518 { "ForeColor", {26, executeForeColor, supported, enabledInRichlyEditable Text, stateNone, valueForeColor, notTextInsertion, doNotAllowExecutionWhenDisabl ed } }, | 1518 { "ForeColor", 26, executeForeColor, supported, enabledInRichlyEditableT ext, stateNone, valueForeColor, notTextInsertion, shouldFireInputEvent, doNotAll owExecutionWhenDisabled }, |
1519 { "FormatBlock", {27, executeFormatBlock, supported, enabledInRichlyEdit ableText, stateNone, valueFormatBlock, notTextInsertion, doNotAllowExecutionWhen Disabled } }, | 1519 { "FormatBlock", 27, executeFormatBlock, supported, enabledInRichlyEdita bleText, stateNone, valueFormatBlock, notTextInsertion, shouldFireInputEvent, do NotAllowExecutionWhenDisabled }, |
1520 { "ForwardDelete", {28, executeForwardDelete, supported, enabledInEditab leText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1520 { "ForwardDelete", 28, executeForwardDelete, supported, enabledInEditabl eText, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowE xecutionWhenDisabled }, |
1521 { "HiliteColor", {29, executeBackColor, supported, enabledInRichlyEditab leText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1521 { "HiliteColor", 29, executeBackColor, supported, enabledInRichlyEditabl eText, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowE xecutionWhenDisabled }, |
1522 { "IgnoreSpelling", {30, executeIgnoreSpelling, supportedFromMenuOrKeyBi nding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllow ExecutionWhenDisabled } }, | 1522 { "IgnoreSpelling", 30, executeIgnoreSpelling, supportedFromMenuOrKeyBin ding, enabledInEditableText, stateNone, valueNull, notTextInsertion, shouldFireI nputEvent, doNotAllowExecutionWhenDisabled }, |
1523 { "Indent", {31, executeIndent, supported, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1523 { "Indent", 31, executeIndent, supported, enabledInRichlyEditableText, s tateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowExecution WhenDisabled }, |
1524 { "InsertBacktab", {32, executeInsertBacktab, supportedFromMenuOrKeyBind ing, enabledInEditableText, stateNone, valueNull, isTextInsertion, doNotAllowExe cutionWhenDisabled } }, | 1524 { "InsertBacktab", 32, executeInsertBacktab, supportedFromMenuOrKeyBindi ng, enabledInEditableText, stateNone, valueNull, isTextInsertion, shouldFireInpu tEvent, doNotAllowExecutionWhenDisabled }, |
1525 { "InsertHTML", {33, executeInsertHTML, supported, enabledInEditableText , stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1525 { "InsertHTML", 33, executeInsertHTML, supported, enabledInEditableText, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowExecuti onWhenDisabled }, |
1526 { "InsertHorizontalRule", {34, executeInsertHorizontalRule, supported, e nabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowEx ecutionWhenDisabled } }, | 1526 { "InsertHorizontalRule", 34, executeInsertHorizontalRule, supported, en abledInRichlyEditableText, stateNone, valueNull, notTextInsertion, shouldFireInp utEvent, doNotAllowExecutionWhenDisabled }, |
1527 { "InsertImage", {35, executeInsertImage, supported, enabledInRichlyEdit ableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisable d } }, | 1527 { "InsertImage", 35, executeInsertImage, supported, enabledInRichlyEdita bleText, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllo wExecutionWhenDisabled }, |
1528 { "InsertLineBreak", {36, executeInsertLineBreak, supported, enabledInEd itableText, stateNone, valueNull, isTextInsertion, doNotAllowExecutionWhenDisabl ed } }, | 1528 { "InsertLineBreak", 36, executeInsertLineBreak, supported, enabledInEdi tableText, stateNone, valueNull, isTextInsertion, shouldFireInputEvent, doNotAll owExecutionWhenDisabled }, |
1529 { "InsertNewline", {37, executeInsertNewline, supportedFromMenuOrKeyBind ing, enabledInEditableText, stateNone, valueNull, isTextInsertion, doNotAllowExe cutionWhenDisabled } }, | 1529 { "InsertNewline", 37, executeInsertNewline, supportedFromMenuOrKeyBindi ng, enabledInEditableText, stateNone, valueNull, isTextInsertion, shouldFireInpu tEvent, doNotAllowExecutionWhenDisabled }, |
1530 { "InsertNewlineInQuotedContent", {38, executeInsertNewlineInQuotedConte nt, supported, enabledInRichlyEditableText, stateNone, valueNull, notTextInserti on, doNotAllowExecutionWhenDisabled } }, | 1530 { "InsertNewlineInQuotedContent", 38, executeInsertNewlineInQuotedConten t, supported, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertio n, shouldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1531 { "InsertOrderedList", {39, executeInsertOrderedList, supported, enabled InRichlyEditableText, stateOrderedList, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled } }, | 1531 { "InsertOrderedList", 39, executeInsertOrderedList, supported, enabledI nRichlyEditableText, stateOrderedList, valueNull, notTextInsertion, shouldFireIn putEvent, doNotAllowExecutionWhenDisabled }, |
1532 { "InsertParagraph", {40, executeInsertParagraph, supported, enabledInEd itableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisab led } }, | 1532 { "InsertParagraph", 40, executeInsertParagraph, supported, enabledInEdi tableText, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAl lowExecutionWhenDisabled }, |
1533 { "InsertTab", {41, executeInsertTab, supportedFromMenuOrKeyBinding, ena bledInEditableText, stateNone, valueNull, isTextInsertion, doNotAllowExecutionWh enDisabled } }, | 1533 { "InsertTab", 41, executeInsertTab, supportedFromMenuOrKeyBinding, enab ledInEditableText, stateNone, valueNull, isTextInsertion, shouldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1534 { "InsertText", {42, executeInsertText, supported, enabledInEditableText , stateNone, valueNull, isTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1534 { "InsertText", 42, executeInsertText, supported, enabledInEditableText, stateNone, valueNull, isTextInsertion, shouldFireInputEvent, doNotAllowExecutio nWhenDisabled }, |
1535 { "InsertUnorderedList", {43, executeInsertUnorderedList, supported, ena bledInRichlyEditableText, stateUnorderedList, valueNull, notTextInsertion, doNot AllowExecutionWhenDisabled } }, | 1535 { "InsertUnorderedList", 43, executeInsertUnorderedList, supported, enab ledInRichlyEditableText, stateUnorderedList, valueNull, notTextInsertion, should FireInputEvent, doNotAllowExecutionWhenDisabled }, |
1536 { "Italic", {44, executeToggleItalic, supported, enabledInRichlyEditable Text, stateItalic, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1536 { "Italic", 44, executeToggleItalic, supported, enabledInRichlyEditableT ext, stateItalic, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowE xecutionWhenDisabled }, |
1537 { "JustifyCenter", {45, executeJustifyCenter, supported, enabledInRichly EditableText, stateJustifyCenter, valueNull, notTextInsertion, doNotAllowExecuti onWhenDisabled } }, | 1537 { "JustifyCenter", 45, executeJustifyCenter, supported, enabledInRichlyE ditableText, stateJustifyCenter, valueNull, notTextInsertion, shouldFireInputEve nt, doNotAllowExecutionWhenDisabled }, |
1538 { "JustifyFull", {46, executeJustifyFull, supported, enabledInRichlyEdit ableText, stateJustifyFull, valueNull, notTextInsertion, doNotAllowExecutionWhen Disabled } }, | 1538 { "JustifyFull", 46, executeJustifyFull, supported, enabledInRichlyEdita bleText, stateJustifyFull, valueNull, notTextInsertion, shouldFireInputEvent, do NotAllowExecutionWhenDisabled }, |
1539 { "JustifyLeft", {47, executeJustifyLeft, supported, enabledInRichlyEdit ableText, stateJustifyLeft, valueNull, notTextInsertion, doNotAllowExecutionWhen Disabled } }, | 1539 { "JustifyLeft", 47, executeJustifyLeft, supported, enabledInRichlyEdita bleText, stateJustifyLeft, valueNull, notTextInsertion, shouldFireInputEvent, do NotAllowExecutionWhenDisabled }, |
1540 { "JustifyNone", {48, executeJustifyLeft, supported, enabledInRichlyEdit ableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisable d } }, | 1540 { "JustifyNone", 48, executeJustifyLeft, supported, enabledInRichlyEdita bleText, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllo wExecutionWhenDisabled }, |
1541 { "JustifyRight", {49, executeJustifyRight, supported, enabledInRichlyEd itableText, stateJustifyRight, valueNull, notTextInsertion, doNotAllowExecutionW henDisabled } }, | 1541 { "JustifyRight", 49, executeJustifyRight, supported, enabledInRichlyEdi tableText, stateJustifyRight, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1542 { "MakeTextWritingDirectionLeftToRight", {50, executeMakeTextWritingDire ctionLeftToRight, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, st ateTextWritingDirectionLeftToRight, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, | 1542 { "MakeTextWritingDirectionLeftToRight", 50, executeMakeTextWritingDirec tionLeftToRight, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, sta teTextWritingDirectionLeftToRight, valueNull, notTextInsertion, shouldFireInputE vent, doNotAllowExecutionWhenDisabled }, |
1543 { "MakeTextWritingDirectionNatural", {51, executeMakeTextWritingDirectio nNatural, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, stateTextW ritingDirectionNatural, valueNull, notTextInsertion, doNotAllowExecutionWhenDisa bled } }, | 1543 { "MakeTextWritingDirectionNatural", 51, executeMakeTextWritingDirection Natural, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, stateTextWr itingDirectionNatural, valueNull, notTextInsertion, shouldFireInputEvent, doNotA llowExecutionWhenDisabled }, |
1544 { "MakeTextWritingDirectionRightToLeft", {52, executeMakeTextWritingDire ctionRightToLeft, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, st ateTextWritingDirectionRightToLeft, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, | 1544 { "MakeTextWritingDirectionRightToLeft", 52, executeMakeTextWritingDirec tionRightToLeft, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, sta teTextWritingDirectionRightToLeft, valueNull, notTextInsertion, shouldFireInputE vent, doNotAllowExecutionWhenDisabled }, |
1545 { "MoveBackward", {53, executeMoveBackward, supportedFromMenuOrKeyBindin g, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1545 { "MoveBackward", 53, executeMoveBackward, supportedFromMenuOrKeyBinding , enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
chongz
2016/03/15 19:19:10
Currently set |doNotFireInputEvent| to commands "M
yosin_UTC9
2016/03/16 01:46:51
Entries having |shouldFireInputEvent| should have
chongz
2016/03/16 21:51:44
I'm not so sure if it's necessary, I guess we can
yosin_UTC9
2016/03/17 01:52:23
Yes. We can check Editor::Command::m_source in exe
| |
1546 { "MoveBackwardAndModifySelection", {54, executeMoveBackwardAndModifySel ection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, s tateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1546 { "MoveBackwardAndModifySelection", 54, executeMoveBackwardAndModifySele ction, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, st ateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWh enDisabled }, |
1547 { "MoveDown", {55, executeMoveDown, supportedFromMenuOrKeyBinding, enabl edInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAl lowExecutionWhenDisabled } }, | 1547 { "MoveDown", 55, executeMoveDown, supportedFromMenuOrKeyBinding, enable dInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFir eInputEvent, doNotAllowExecutionWhenDisabled }, |
1548 { "MoveDownAndModifySelection", {56, executeMoveDownAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone , valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1548 { "MoveDownAndModifySelection", 56, executeMoveDownAndModifySelection, s upportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabl ed }, |
1549 { "MoveForward", {57, executeMoveForward, supportedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, d oNotAllowExecutionWhenDisabled } }, | 1549 { "MoveForward", 57, executeMoveForward, supportedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, do NotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1550 { "MoveForwardAndModifySelection", {58, executeMoveForwardAndModifySelec tion, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, sta teNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1550 { "MoveForwardAndModifySelection", 58, executeMoveForwardAndModifySelect ion, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stat eNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhen Disabled }, |
1551 { "MoveLeft", {59, executeMoveLeft, supportedFromMenuOrKeyBinding, enabl edInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAl lowExecutionWhenDisabled } }, | 1551 { "MoveLeft", 59, executeMoveLeft, supportedFromMenuOrKeyBinding, enable dInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFir eInputEvent, doNotAllowExecutionWhenDisabled }, |
1552 { "MoveLeftAndModifySelection", {60, executeMoveLeftAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone , valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1552 { "MoveLeftAndModifySelection", 60, executeMoveLeftAndModifySelection, s upportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabl ed }, |
1553 { "MovePageDown", {61, executeMovePageDown, supportedFromMenuOrKeyBindin g, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExec utionWhenDisabled } }, | 1553 { "MovePageDown", 61, executeMovePageDown, supportedFromMenuOrKeyBinding , enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotFireInputE vent, doNotAllowExecutionWhenDisabled }, |
1554 { "MovePageDownAndModifySelection", {62, executeMovePageDownAndModifySel ection, supportedFromMenuOrKeyBinding, enabledVisibleSelection, stateNone, value Null, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1554 { "MovePageDownAndModifySelection", 62, executeMovePageDownAndModifySele ction, supportedFromMenuOrKeyBinding, enabledVisibleSelection, stateNone, valueN ull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1555 { "MovePageUp", {63, executeMovePageUp, supportedFromMenuOrKeyBinding, e nabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutio nWhenDisabled } }, | 1555 { "MovePageUp", 63, executeMovePageUp, supportedFromMenuOrKeyBinding, en abledInEditableText, stateNone, valueNull, notTextInsertion, doNotFireInputEvent , doNotAllowExecutionWhenDisabled }, |
1556 { "MovePageUpAndModifySelection", {64, executeMovePageUpAndModifySelecti on, supportedFromMenuOrKeyBinding, enabledVisibleSelection, stateNone, valueNull , notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1556 { "MovePageUpAndModifySelection", 64, executeMovePageUpAndModifySelectio n, supportedFromMenuOrKeyBinding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1557 { "MoveParagraphBackward", {65, executeMoveParagraphBackward, supportedF romMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1557 { "MoveParagraphBackward", 65, executeMoveParagraphBackward, supportedFr omMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1558 { "MoveParagraphBackwardAndModifySelection", {66, executeMoveParagraphBa ckwardAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelection OrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhen Disabled } }, | 1558 { "MoveParagraphBackwardAndModifySelection", 66, executeMoveParagraphBac kwardAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionO rCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doN otAllowExecutionWhenDisabled }, |
1559 { "MoveParagraphForward", {67, executeMoveParagraphForward, supportedFro mMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, n otTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1559 { "MoveParagraphForward", 67, executeMoveParagraphForward, supportedFrom MenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, no tTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1560 { "MoveParagraphForwardAndModifySelection", {68, executeMoveParagraphFor wardAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOr CaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDi sabled } }, | 1560 { "MoveParagraphForwardAndModifySelection", 68, executeMoveParagraphForw ardAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrC aretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNot AllowExecutionWhenDisabled }, |
1561 { "MoveRight", {69, executeMoveRight, supportedFromMenuOrKeyBinding, ena bledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNot AllowExecutionWhenDisabled } }, | 1561 { "MoveRight", 69, executeMoveRight, supportedFromMenuOrKeyBinding, enab ledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotF ireInputEvent, doNotAllowExecutionWhenDisabled }, |
1562 { "MoveRightAndModifySelection", {70, executeMoveRightAndModifySelection , supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNo ne, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1562 { "MoveRightAndModifySelection", 70, executeMoveRightAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNon e, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisa bled }, |
1563 { "MoveToBeginningOfDocument", {71, executeMoveToBeginningOfDocument, su pportedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, va lueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1563 { "MoveToBeginningOfDocument", 71, executeMoveToBeginningOfDocument, sup portedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, val ueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled } , |
1564 { "MoveToBeginningOfDocumentAndModifySelection", {72, executeMoveToBegin ningOfDocumentAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleS electionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, | 1564 { "MoveToBeginningOfDocumentAndModifySelection", 72, executeMoveToBeginn ingOfDocumentAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSe lectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEv ent, doNotAllowExecutionWhenDisabled }, |
1565 { "MoveToBeginningOfLine", {73, executeMoveToBeginningOfLine, supportedF romMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1565 { "MoveToBeginningOfLine", 73, executeMoveToBeginningOfLine, supportedFr omMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1566 { "MoveToBeginningOfLineAndModifySelection", {74, executeMoveToBeginning OfLineAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelection OrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhen Disabled } }, | 1566 { "MoveToBeginningOfLineAndModifySelection", 74, executeMoveToBeginningO fLineAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionO rCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doN otAllowExecutionWhenDisabled }, |
1567 { "MoveToBeginningOfParagraph", {75, executeMoveToBeginningOfParagraph, supportedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1567 { "MoveToBeginningOfParagraph", 75, executeMoveToBeginningOfParagraph, s upportedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, v alueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1568 { "MoveToBeginningOfParagraphAndModifySelection", {76, executeMoveToBegi nningOfParagraphAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibl eSelectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExe cutionWhenDisabled } }, | 1568 { "MoveToBeginningOfParagraphAndModifySelection", 76, executeMoveToBegin ningOfParagraphAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisible SelectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInput Event, doNotAllowExecutionWhenDisabled }, |
1569 { "MoveToBeginningOfSentence", {77, executeMoveToBeginningOfSentence, su pportedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, va lueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1569 { "MoveToBeginningOfSentence", 77, executeMoveToBeginningOfSentence, sup portedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, val ueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled } , |
1570 { "MoveToBeginningOfSentenceAndModifySelection", {78, executeMoveToBegin ningOfSentenceAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleS electionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, | 1570 { "MoveToBeginningOfSentenceAndModifySelection", 78, executeMoveToBeginn ingOfSentenceAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSe lectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEv ent, doNotAllowExecutionWhenDisabled }, |
1571 { "MoveToEndOfDocument", {79, executeMoveToEndOfDocument, supportedFromM enuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, not TextInsertion, doNotAllowExecutionWhenDisabled } }, | 1571 { "MoveToEndOfDocument", 79, executeMoveToEndOfDocument, supportedFromMe nuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notT extInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1572 { "MoveToEndOfDocumentAndModifySelection", {80, executeMoveToEndOfDocume ntAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCa retBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisa bled } }, | 1572 { "MoveToEndOfDocumentAndModifySelection", 80, executeMoveToEndOfDocumen tAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCar etBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAl lowExecutionWhenDisabled }, |
1573 { "MoveToEndOfLine", {81, executeMoveToEndOfLine, supportedFromMenuOrKey Binding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInse rtion, doNotAllowExecutionWhenDisabled } }, | 1573 { "MoveToEndOfLine", 81, executeMoveToEndOfLine, supportedFromMenuOrKeyB inding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInser tion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1574 { "MoveToEndOfLineAndModifySelection", {82, executeMoveToEndOfLineAndMod ifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrows ing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } } , | 1574 { "MoveToEndOfLineAndModifySelection", 82, executeMoveToEndOfLineAndModi fySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsi ng, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecu tionWhenDisabled }, |
1575 { "MoveToEndOfParagraph", {83, executeMoveToEndOfParagraph, supportedFro mMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, n otTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1575 { "MoveToEndOfParagraph", 83, executeMoveToEndOfParagraph, supportedFrom MenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, no tTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1576 { "MoveToEndOfParagraphAndModifySelection", {84, executeMoveToEndOfParag raphAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOr CaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDi sabled } }, | 1576 { "MoveToEndOfParagraphAndModifySelection", 84, executeMoveToEndOfParagr aphAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrC aretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNot AllowExecutionWhenDisabled }, |
1577 { "MoveToEndOfSentence", {85, executeMoveToEndOfSentence, supportedFromM enuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, not TextInsertion, doNotAllowExecutionWhenDisabled } }, | 1577 { "MoveToEndOfSentence", 85, executeMoveToEndOfSentence, supportedFromMe nuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notT extInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1578 { "MoveToEndOfSentenceAndModifySelection", {86, executeMoveToEndOfSenten ceAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCa retBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisa bled } }, | 1578 { "MoveToEndOfSentenceAndModifySelection", 86, executeMoveToEndOfSentenc eAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCar etBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAl lowExecutionWhenDisabled }, |
1579 { "MoveToLeftEndOfLine", {87, executeMoveToLeftEndOfLine, supportedFromM enuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1579 { "MoveToLeftEndOfLine", 87, executeMoveToLeftEndOfLine, supportedFromMe nuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, d oNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1580 { "MoveToLeftEndOfLineAndModifySelection", {88, executeMoveToLeftEndOfLi neAndModifySelection, supportedFromMenuOrKeyBinding, enabledInEditableText, stat eNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1580 { "MoveToLeftEndOfLineAndModifySelection", 88, executeMoveToLeftEndOfLin eAndModifySelection, supportedFromMenuOrKeyBinding, enabledInEditableText, state None, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenD isabled }, |
1581 { "MoveToRightEndOfLine", {89, executeMoveToRightEndOfLine, supportedFro mMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion , doNotAllowExecutionWhenDisabled } }, | 1581 { "MoveToRightEndOfLine", 89, executeMoveToRightEndOfLine, supportedFrom MenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1582 { "MoveToRightEndOfLineAndModifySelection", {90, executeMoveToRightEndOf LineAndModifySelection, supportedFromMenuOrKeyBinding, enabledInEditableText, st ateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1582 { "MoveToRightEndOfLineAndModifySelection", 90, executeMoveToRightEndOfL ineAndModifySelection, supportedFromMenuOrKeyBinding, enabledInEditableText, sta teNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhe nDisabled }, |
1583 { "MoveUp", {91, executeMoveUp, supportedFromMenuOrKeyBinding, enabledIn EditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled } }, | 1583 { "MoveUp", 91, executeMoveUp, supportedFromMenuOrKeyBinding, enabledInE ditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInp utEvent, doNotAllowExecutionWhenDisabled }, |
1584 { "MoveUpAndModifySelection", {92, executeMoveUpAndModifySelection, supp ortedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone, va lueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1584 { "MoveUpAndModifySelection", 92, executeMoveUpAndModifySelection, suppo rtedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone, val ueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled } , |
1585 { "MoveWordBackward", {93, executeMoveWordBackward, supportedFromMenuOrK eyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextIn sertion, doNotAllowExecutionWhenDisabled } }, | 1585 { "MoveWordBackward", 93, executeMoveWordBackward, supportedFromMenuOrKe yBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextIns ertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1586 { "MoveWordBackwardAndModifySelection", {94, executeMoveWordBackwardAndM odifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBro wsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1586 { "MoveWordBackwardAndModifySelection", 94, executeMoveWordBackwardAndMo difySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrow sing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExe cutionWhenDisabled }, |
1587 { "MoveWordForward", {95, executeMoveWordForward, supportedFromMenuOrKey Binding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInse rtion, doNotAllowExecutionWhenDisabled } }, | 1587 { "MoveWordForward", 95, executeMoveWordForward, supportedFromMenuOrKeyB inding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInser tion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1588 { "MoveWordForwardAndModifySelection", {96, executeMoveWordForwardAndMod ifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrows ing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } } , | 1588 { "MoveWordForwardAndModifySelection", 96, executeMoveWordForwardAndModi fySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsi ng, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecu tionWhenDisabled }, |
1589 { "MoveWordLeft", {97, executeMoveWordLeft, supportedFromMenuOrKeyBindin g, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1589 { "MoveWordLeft", 97, executeMoveWordLeft, supportedFromMenuOrKeyBinding , enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1590 { "MoveWordLeftAndModifySelection", {98, executeMoveWordLeftAndModifySel ection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, s tateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1590 { "MoveWordLeftAndModifySelection", 98, executeMoveWordLeftAndModifySele ction, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, st ateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWh enDisabled }, |
1591 { "MoveWordRight", {99, executeMoveWordRight, supportedFromMenuOrKeyBind ing, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertio n, doNotAllowExecutionWhenDisabled } }, | 1591 { "MoveWordRight", 99, executeMoveWordRight, supportedFromMenuOrKeyBindi ng, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion , doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1592 { "MoveWordRightAndModifySelection", {100, executeMoveWordRightAndModify Selection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing , stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1592 { "MoveWordRightAndModifySelection", 100, executeMoveWordRightAndModifyS election, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutio nWhenDisabled }, |
1593 { "Outdent", {101, executeOutdent, supported, enabledInRichlyEditableTex t, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1593 { "Outdent", 101, executeOutdent, supported, enabledInRichlyEditableText , stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowExecut ionWhenDisabled }, |
1594 { "OverWrite", {102, executeToggleOverwrite, supportedFromMenuOrKeyBindi ng, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAl lowExecutionWhenDisabled } }, | 1594 { "OverWrite", 102, executeToggleOverwrite, supportedFromMenuOrKeyBindin g, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, shouldFi reInputEvent, doNotAllowExecutionWhenDisabled }, |
1595 { "Paste", {103, executePaste, supported, enabledPaste, stateNone, value Null, notTextInsertion, allowExecutionWhenDisabled } }, | 1595 { "Paste", 103, executePaste, supported, enabledPaste, stateNone, valueN ull, notTextInsertion, shouldFireInputEvent, allowExecutionWhenDisabled }, |
1596 { "PasteAndMatchStyle", {104, executePasteAndMatchStyle, supported, enab ledPaste, stateNone, valueNull, notTextInsertion, allowExecutionWhenDisabled } } , | 1596 { "PasteAndMatchStyle", 104, executePasteAndMatchStyle, supported, enabl edPaste, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, allowExec utionWhenDisabled }, |
1597 { "PasteGlobalSelection", {105, executePasteGlobalSelection, supportedFr omMenuOrKeyBinding, enabledPaste, stateNone, valueNull, notTextInsertion, allowE xecutionWhenDisabled } }, | 1597 { "PasteGlobalSelection", 105, executePasteGlobalSelection, supportedFro mMenuOrKeyBinding, enabledPaste, stateNone, valueNull, notTextInsertion, shouldF ireInputEvent, allowExecutionWhenDisabled }, |
1598 { "Print", {106, executePrint, supported, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1598 { "Print", 106, executePrint, supported, enabled, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1599 { "Redo", {107, executeRedo, supported, enabledRedo, stateNone, valueNul l, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1599 { "Redo", 107, executeRedo, supported, enabledRedo, stateNone, valueNull , notTextInsertion, shouldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1600 { "RemoveFormat", {108, executeRemoveFormat, supported, enabledRangeInEd itableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisab led } }, | 1600 { "RemoveFormat", 108, executeRemoveFormat, supported, enabledRangeInEdi tableText, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAl lowExecutionWhenDisabled }, |
1601 { "ScrollPageBackward", {109, executeScrollPageBackward, supportedFromMe nuOrKeyBinding, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, | 1601 { "ScrollPageBackward", 109, executeScrollPageBackward, supportedFromMen uOrKeyBinding, enabled, stateNone, valueNull, notTextInsertion, doNotFireInputEv ent, doNotAllowExecutionWhenDisabled }, |
1602 { "ScrollPageForward", {110, executeScrollPageForward, supportedFromMenu OrKeyBinding, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecuti onWhenDisabled } }, | 1602 { "ScrollPageForward", 110, executeScrollPageForward, supportedFromMenuO rKeyBinding, enabled, stateNone, valueNull, notTextInsertion, doNotFireInputEven t, doNotAllowExecutionWhenDisabled }, |
1603 { "ScrollLineUp", {111, executeScrollLineUp, supportedFromMenuOrKeyBindi ng, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisa bled } }, | 1603 { "ScrollLineUp", 111, executeScrollLineUp, supportedFromMenuOrKeyBindin g, enabled, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doNotAl lowExecutionWhenDisabled }, |
1604 { "ScrollLineDown", {112, executeScrollLineDown, supportedFromMenuOrKeyB inding, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhen Disabled } }, | 1604 { "ScrollLineDown", 112, executeScrollLineDown, supportedFromMenuOrKeyBi nding, enabled, stateNone, valueNull, notTextInsertion, doNotFireInputEvent, doN otAllowExecutionWhenDisabled }, |
1605 { "ScrollToBeginningOfDocument", {113, executeScrollToBeginningOfDocumen t, supportedFromMenuOrKeyBinding, enabled, stateNone, valueNull, notTextInsertio n, doNotAllowExecutionWhenDisabled } }, | 1605 { "ScrollToBeginningOfDocument", 113, executeScrollToBeginningOfDocument , supportedFromMenuOrKeyBinding, enabled, stateNone, valueNull, notTextInsertion , doNotFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1606 { "ScrollToEndOfDocument", {114, executeScrollToEndOfDocument, supported FromMenuOrKeyBinding, enabled, stateNone, valueNull, notTextInsertion, doNotAllo wExecutionWhenDisabled } }, | 1606 { "ScrollToEndOfDocument", 114, executeScrollToEndOfDocument, supportedF romMenuOrKeyBinding, enabled, stateNone, valueNull, notTextInsertion, doNotFireI nputEvent, doNotAllowExecutionWhenDisabled }, |
1607 { "SelectAll", {115, executeSelectAll, supported, enabled, stateNone, va lueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1607 { "SelectAll", 115, executeSelectAll, supported, enabled, stateNone, val ueNull, notTextInsertion, doNotFireInputEvent, doNotAllowExecutionWhenDisabled } , |
1608 { "SelectLine", {116, executeSelectLine, supportedFromMenuOrKeyBinding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, | 1608 { "SelectLine", 116, executeSelectLine, supportedFromMenuOrKeyBinding, e nabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotFireInputEv ent, doNotAllowExecutionWhenDisabled }, |
1609 { "SelectParagraph", {117, executeSelectParagraph, supportedFromMenuOrKe yBinding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNot AllowExecutionWhenDisabled } }, | 1609 { "SelectParagraph", 117, executeSelectParagraph, supportedFromMenuOrKey Binding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotF ireInputEvent, doNotAllowExecutionWhenDisabled }, |
1610 { "SelectSentence", {118, executeSelectSentence, supportedFromMenuOrKeyB inding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAl lowExecutionWhenDisabled } }, | 1610 { "SelectSentence", 118, executeSelectSentence, supportedFromMenuOrKeyBi nding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotFir eInputEvent, doNotAllowExecutionWhenDisabled }, |
1611 { "SelectToMark", {119, executeSelectToMark, supportedFromMenuOrKeyBindi ng, enabledVisibleSelectionAndMark, stateNone, valueNull, notTextInsertion, doNo tAllowExecutionWhenDisabled } }, | 1611 { "SelectToMark", 119, executeSelectToMark, supportedFromMenuOrKeyBindin g, enabledVisibleSelectionAndMark, stateNone, valueNull, notTextInsertion, doNot FireInputEvent, doNotAllowExecutionWhenDisabled }, |
1612 { "SelectWord", {120, executeSelectWord, supportedFromMenuOrKeyBinding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, | 1612 { "SelectWord", 120, executeSelectWord, supportedFromMenuOrKeyBinding, e nabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotFireInputEv ent, doNotAllowExecutionWhenDisabled }, |
1613 { "SetMark", {121, executeSetMark, supportedFromMenuOrKeyBinding, enable dVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWh enDisabled } }, | 1613 { "SetMark", 121, executeSetMark, supportedFromMenuOrKeyBinding, enabled VisibleSelection, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1614 { "Strikethrough", {122, executeStrikethrough, supported, enabledInRichl yEditableText, stateStrikethrough, valueNull, notTextInsertion, doNotAllowExecut ionWhenDisabled } }, | 1614 { "Strikethrough", 122, executeStrikethrough, supported, enabledInRichly EditableText, stateStrikethrough, valueNull, notTextInsertion, shouldFireInputEv ent, doNotAllowExecutionWhenDisabled }, |
1615 { "StyleWithCSS", {123, executeStyleWithCSS, supported, enabled, stateSt yleWithCSS, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1615 { "StyleWithCSS", 123, executeStyleWithCSS, supported, enabled, stateSty leWithCSS, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowExecutio nWhenDisabled }, |
1616 { "Subscript", {124, executeSubscript, supported, enabledInRichlyEditabl eText, stateSubscript, valueNull, notTextInsertion, doNotAllowExecutionWhenDisab led } }, | 1616 { "Subscript", 124, executeSubscript, supported, enabledInRichlyEditable Text, stateSubscript, valueNull, notTextInsertion, shouldFireInputEvent, doNotAl lowExecutionWhenDisabled }, |
1617 { "Superscript", {125, executeSuperscript, supported, enabledInRichlyEdi tableText, stateSuperscript, valueNull, notTextInsertion, doNotAllowExecutionWhe nDisabled } }, | 1617 { "Superscript", 125, executeSuperscript, supported, enabledInRichlyEdit ableText, stateSuperscript, valueNull, notTextInsertion, shouldFireInputEvent, d oNotAllowExecutionWhenDisabled }, |
1618 { "SwapWithMark", {126, executeSwapWithMark, supportedFromMenuOrKeyBindi ng, enabledVisibleSelectionAndMark, stateNone, valueNull, notTextInsertion, doNo tAllowExecutionWhenDisabled } }, | 1618 { "SwapWithMark", 126, executeSwapWithMark, supportedFromMenuOrKeyBindin g, enabledVisibleSelectionAndMark, stateNone, valueNull, notTextInsertion, shoul dFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1619 { "ToggleBold", {127, executeToggleBold, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, stateBold, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled } }, | 1619 { "ToggleBold", 127, executeToggleBold, supportedFromMenuOrKeyBinding, e nabledInRichlyEditableText, stateBold, valueNull, notTextInsertion, shouldFireIn putEvent, doNotAllowExecutionWhenDisabled }, |
1620 { "ToggleItalic", {128, executeToggleItalic, supportedFromMenuOrKeyBindi ng, enabledInRichlyEditableText, stateItalic, valueNull, notTextInsertion, doNot AllowExecutionWhenDisabled } }, | 1620 { "ToggleItalic", 128, executeToggleItalic, supportedFromMenuOrKeyBindin g, enabledInRichlyEditableText, stateItalic, valueNull, notTextInsertion, should FireInputEvent, doNotAllowExecutionWhenDisabled }, |
1621 { "ToggleUnderline", {129, executeUnderline, supportedFromMenuOrKeyBindi ng, enabledInRichlyEditableText, stateUnderline, valueNull, notTextInsertion, do NotAllowExecutionWhenDisabled } }, | 1621 { "ToggleUnderline", 129, executeUnderline, supportedFromMenuOrKeyBindin g, enabledInRichlyEditableText, stateUnderline, valueNull, notTextInsertion, sho uldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1622 { "Transpose", {130, executeTranspose, supported, enableCaretInEditableT ext, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } } , | 1622 { "Transpose", 130, executeTranspose, supported, enableCaretInEditableTe xt, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowExec utionWhenDisabled }, |
1623 { "Underline", {131, executeUnderline, supported, enabledInRichlyEditabl eText, stateUnderline, valueNull, notTextInsertion, doNotAllowExecutionWhenDisab led } }, | 1623 { "Underline", 131, executeUnderline, supported, enabledInRichlyEditable Text, stateUnderline, valueNull, notTextInsertion, shouldFireInputEvent, doNotAl lowExecutionWhenDisabled }, |
1624 { "Undo", {132, executeUndo, supported, enabledUndo, stateNone, valueNul l, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1624 { "Undo", 132, executeUndo, supported, enabledUndo, stateNone, valueNull , notTextInsertion, shouldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1625 { "Unlink", {133, executeUnlink, supported, enabledRangeInRichlyEditable Text, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1625 { "Unlink", 133, executeUnlink, supported, enabledRangeInRichlyEditableT ext, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowExe cutionWhenDisabled }, |
1626 { "Unscript", {134, executeUnscript, supportedFromMenuOrKeyBinding, enab ledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, | 1626 { "Unscript", 134, executeUnscript, supportedFromMenuOrKeyBinding, enabl edInRichlyEditableText, stateNone, valueNull, notTextInsertion, shouldFireInputE vent, doNotAllowExecutionWhenDisabled }, |
1627 { "Unselect", {135, executeUnselect, supported, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1627 { "Unselect", 135, executeUnselect, supported, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAllowExecutio nWhenDisabled }, |
1628 { "UseCSS", {136, executeUseCSS, supported, enabled, stateNone, valueNul l, notTextInsertion, doNotAllowExecutionWhenDisabled } }, | 1628 { "UseCSS", 136, executeUseCSS, supported, enabled, stateNone, valueNull , notTextInsertion, shouldFireInputEvent, doNotAllowExecutionWhenDisabled }, |
1629 { "Yank", {137, executeYank, supportedFromMenuOrKeyBinding, enabledInEdi tableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabl ed } }, | 1629 { "Yank", 137, executeYank, supportedFromMenuOrKeyBinding, enabledInEdit ableText, stateNone, valueNull, notTextInsertion, shouldFireInputEvent, doNotAll owExecutionWhenDisabled }, |
1630 { "YankAndSelect", {138, executeYankAndSelect, supportedFromMenuOrKeyBin ding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled } }, | 1630 { "YankAndSelect", 138, executeYankAndSelect, supportedFromMenuOrKeyBind ing, enabledInEditableText, stateNone, valueNull, notTextInsertion, shouldFireIn putEvent, doNotAllowExecutionWhenDisabled }, |
1631 }; | 1631 }; |
1632 | 1632 |
1633 // These unsupported commands are listed here since they appear in the Micro soft | 1633 // These unsupported commands are listed here since they appear in the Micro soft |
1634 // documentation used as the starting point for our DOM executeCommand suppo rt. | 1634 // documentation used as the starting point for our DOM executeCommand suppo rt. |
1635 // | 1635 // |
1636 // 2D-Position (not supported) | 1636 // 2D-Position (not supported) |
1637 // AbsolutePosition (not supported) | 1637 // AbsolutePosition (not supported) |
1638 // BlockDirLTR (not supported) | 1638 // BlockDirLTR (not supported) |
1639 // BlockDirRTL (not supported) | 1639 // BlockDirRTL (not supported) |
1640 // BrowseMode (not supported) | 1640 // BrowseMode (not supported) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1674 // SizeToControlWidth (not supported) | 1674 // SizeToControlWidth (not supported) |
1675 // Stop (not supported) | 1675 // Stop (not supported) |
1676 // StopImage (not supported) | 1676 // StopImage (not supported) |
1677 // Unbookmark (not supported) | 1677 // Unbookmark (not supported) |
1678 | 1678 |
1679 CommandMap& commandMap = *new CommandMap; | 1679 CommandMap& commandMap = *new CommandMap; |
1680 #if ENABLE(ASSERT) | 1680 #if ENABLE(ASSERT) |
1681 HashSet<int> idSet; | 1681 HashSet<int> idSet; |
1682 #endif | 1682 #endif |
1683 for (size_t i = 0; i < WTF_ARRAY_LENGTH(commands); ++i) { | 1683 for (size_t i = 0; i < WTF_ARRAY_LENGTH(commands); ++i) { |
1684 const CommandEntry& command = commands[i]; | 1684 const EditorInternalCommand& command = commands[i]; |
1685 ASSERT(!commandMap.get(command.name)); | 1685 ASSERT(!commandMap.get(command.commandName)); |
1686 commandMap.set(String(command.name), &command.command); | 1686 commandMap.set(String(command.commandName), &command); |
1687 #if ENABLE(ASSERT) | 1687 #if ENABLE(ASSERT) |
1688 ASSERT(!idSet.contains(command.command.idForUserMetrics)); | 1688 ASSERT(!idSet.contains(command.idForUserMetrics)); |
1689 idSet.add(command.command.idForUserMetrics); | 1689 idSet.add(command.idForUserMetrics); |
1690 #endif | 1690 #endif |
1691 } | 1691 } |
1692 | 1692 |
1693 return commandMap; | 1693 return commandMap; |
1694 } | 1694 } |
1695 | 1695 |
1696 static const EditorInternalCommand* internalCommand(const String& commandName) | 1696 static const EditorInternalCommand* internalCommand(const String& commandName) |
1697 { | 1697 { |
1698 static const CommandMap& commandMap = createCommandMap(); | 1698 static const CommandMap& commandMap = createCommandMap(); |
1699 return commandName.isEmpty() ? 0 : commandMap.get(commandName); | 1699 return commandName.isEmpty() ? 0 : commandMap.get(commandName); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1772 { | 1772 { |
1773 // TODO(yosin) We should move this logic into |canExecute()| member function | 1773 // TODO(yosin) We should move this logic into |canExecute()| member function |
1774 // in |EditorInternalCommand| to replace |allowExecutionWhenDisabled|. | 1774 // in |EditorInternalCommand| to replace |allowExecutionWhenDisabled|. |
1775 // |allowExecutionWhenDisabled| is for "Copy", "Cut" and "Paste" commands | 1775 // |allowExecutionWhenDisabled| is for "Copy", "Cut" and "Paste" commands |
1776 // only. | 1776 // only. |
1777 if (!isEnabled(triggeringEvent)) { | 1777 if (!isEnabled(triggeringEvent)) { |
1778 // Let certain commands be executed when performed explicitly even if th ey are disabled. | 1778 // Let certain commands be executed when performed explicitly even if th ey are disabled. |
1779 if (!isSupported() || !m_frame || !m_command->allowExecutionWhenDisabled ) | 1779 if (!isSupported() || !m_frame || !m_command->allowExecutionWhenDisabled ) |
1780 return false; | 1780 return false; |
1781 } | 1781 } |
1782 | |
1783 if (m_command->shouldFireInputEvent) { | |
yosin_UTC9
2016/03/16 01:46:51
We should check this command is invoked by user ac
chongz
2016/03/16 21:51:44
Acknowledged.
chongz
2016/04/13 00:34:28
Done.
| |
1784 if (dispatchBeforeInputEditorCommand(eventTargetNodeForDocument(m_frame- >document()), m_command->commandName) != DispatchEventResult::NotCanceled) | |
1785 return true; | |
1786 } | |
1787 | |
1788 // 'beforeinput' event handler may destroy |frame()|. | |
1789 if (!m_frame || !frame().document()) | |
1790 return false; | |
1791 | |
1782 frame().document()->updateLayoutIgnorePendingStylesheets(); | 1792 frame().document()->updateLayoutIgnorePendingStylesheets(); |
1783 DEFINE_STATIC_LOCAL(SparseHistogram, commandHistogram, ("WebCore.Editing.Com mands")); | 1793 DEFINE_STATIC_LOCAL(SparseHistogram, commandHistogram, ("WebCore.Editing.Com mands")); |
1784 commandHistogram.sample(m_command->idForUserMetrics); | 1794 commandHistogram.sample(m_command->idForUserMetrics); |
1785 return m_command->execute(*m_frame, triggeringEvent, m_source, parameter); | 1795 return m_command->execute(*m_frame, triggeringEvent, m_source, parameter); |
1786 } | 1796 } |
1787 | 1797 |
1788 bool Editor::Command::execute(Event* triggeringEvent) const | 1798 bool Editor::Command::execute(Event* triggeringEvent) const |
1789 { | 1799 { |
1790 return execute(String(), triggeringEvent); | 1800 return execute(String(), triggeringEvent); |
1791 } | 1801 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1831 { | 1841 { |
1832 return m_command && m_command->isTextInsertion; | 1842 return m_command && m_command->isTextInsertion; |
1833 } | 1843 } |
1834 | 1844 |
1835 int Editor::Command::idForHistogram() const | 1845 int Editor::Command::idForHistogram() const |
1836 { | 1846 { |
1837 return isSupported() ? m_command->idForUserMetrics : 0; | 1847 return isSupported() ? m_command->idForUserMetrics : 0; |
1838 } | 1848 } |
1839 | 1849 |
1840 } // namespace blink | 1850 } // namespace blink |
OLD | NEW |