diff --git a/mozilla/editor/base/editorInterfaces.cpp b/mozilla/editor/base/editorInterfaces.cpp
index db9280928ac..1cc2662ec19 100644
--- a/mozilla/editor/base/editorInterfaces.cpp
+++ b/mozilla/editor/base/editorInterfaces.cpp
@@ -225,6 +225,7 @@ nsEditorKeyListener::ProcessShortCutKeys(nsIDOMEvent* aKeyEvent, PRBool& aProces
// hard-coded split node test: works on first
in the document
case nsIDOMEvent::VK_S:
+ if (PR_TRUE==ctrlKey)
{
nsAutoString pTag("P");
nsCOMPtr currentNode;
@@ -248,8 +249,8 @@ nsEditorKeyListener::ProcessShortCutKeys(nsIDOMEvent* aKeyEvent, PRBool& aProces
if (txn)
mEditor->Do(txn);
}
+ aProcessed=PR_TRUE;
}
- aProcessed=PR_TRUE;
break;
diff --git a/mozilla/editor/core/editorInterfaces.cpp b/mozilla/editor/core/editorInterfaces.cpp
index db9280928ac..1cc2662ec19 100644
--- a/mozilla/editor/core/editorInterfaces.cpp
+++ b/mozilla/editor/core/editorInterfaces.cpp
@@ -225,6 +225,7 @@ nsEditorKeyListener::ProcessShortCutKeys(nsIDOMEvent* aKeyEvent, PRBool& aProces
// hard-coded split node test: works on first in the document
case nsIDOMEvent::VK_S:
+ if (PR_TRUE==ctrlKey)
{
nsAutoString pTag("P");
nsCOMPtr currentNode;
@@ -248,8 +249,8 @@ nsEditorKeyListener::ProcessShortCutKeys(nsIDOMEvent* aKeyEvent, PRBool& aProces
if (txn)
mEditor->Do(txn);
}
+ aProcessed=PR_TRUE;
}
- aProcessed=PR_TRUE;
break;