made split test work with Ctrl-S only, so now you can type "s"

git-svn-id: svn://10.0.0.236/trunk@18324 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
buster%netscape.com
1999-01-22 19:03:23 +00:00
parent 21276a494f
commit 048be49b69
2 changed files with 4 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;