From 048be49b69fae1653b29ea4ba8ea351274c50b15 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Fri, 22 Jan 1999 19:03:23 +0000 Subject: [PATCH] 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 --- mozilla/editor/base/editorInterfaces.cpp | 3 ++- mozilla/editor/core/editorInterfaces.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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;