fixed a minor bug where shortcut keys were being declared as "handled" even if

Ctrl wasn't pressed, so you couldn't type in the character.
This commit is contained in:
buster%netscape.com 1999-01-28 17:06:42 +00:00
Родитель 14b149a14c
Коммит 037b29886a
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -207,20 +207,20 @@ nsEditorKeyListener::ProcessShortCutKeys(nsIDOMEvent* aKeyEvent, PRBool& aProces
case nsIDOMEvent::VK_Z:
if (PR_TRUE==ctrlKey)
{
aProcessed=PR_TRUE;
if (nsnull!=mEditor)
mEditor->Undo(1);
}
aProcessed=PR_TRUE;
break;
// XXX: hard-coded redo
case nsIDOMEvent::VK_Y:
if (PR_TRUE==ctrlKey)
{
aProcessed=PR_TRUE;
if (nsnull!=mEditor)
mEditor->Redo(1);
}
aProcessed=PR_TRUE;
break;
// hard-coded split node test: works on first <P> in the document