зеркало из https://github.com/mozilla/gecko-dev.git
made split test work with Ctrl-S only, so now you can type "s"
This commit is contained in:
Родитель
36d1140683
Коммит
e4eb194e3d
|
@ -225,6 +225,7 @@ nsEditorKeyListener::ProcessShortCutKeys(nsIDOMEvent* aKeyEvent, PRBool& aProces
|
|||
|
||||
// hard-coded split node test: works on first <P> in the document
|
||||
case nsIDOMEvent::VK_S:
|
||||
if (PR_TRUE==ctrlKey)
|
||||
{
|
||||
nsAutoString pTag("P");
|
||||
nsCOMPtr<nsIDOMNode> currentNode;
|
||||
|
@ -248,8 +249,8 @@ nsEditorKeyListener::ProcessShortCutKeys(nsIDOMEvent* aKeyEvent, PRBool& aProces
|
|||
if (txn)
|
||||
mEditor->Do(txn);
|
||||
}
|
||||
aProcessed=PR_TRUE;
|
||||
}
|
||||
aProcessed=PR_TRUE;
|
||||
break;
|
||||
|
||||
|
||||
|
|
|
@ -225,6 +225,7 @@ nsEditorKeyListener::ProcessShortCutKeys(nsIDOMEvent* aKeyEvent, PRBool& aProces
|
|||
|
||||
// hard-coded split node test: works on first <P> in the document
|
||||
case nsIDOMEvent::VK_S:
|
||||
if (PR_TRUE==ctrlKey)
|
||||
{
|
||||
nsAutoString pTag("P");
|
||||
nsCOMPtr<nsIDOMNode> currentNode;
|
||||
|
@ -248,8 +249,8 @@ nsEditorKeyListener::ProcessShortCutKeys(nsIDOMEvent* aKeyEvent, PRBool& aProces
|
|||
if (txn)
|
||||
mEditor->Do(txn);
|
||||
}
|
||||
aProcessed=PR_TRUE;
|
||||
}
|
||||
aProcessed=PR_TRUE;
|
||||
break;
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче