Throw the switch so we now pay attention to the charCode in the key event.

This commit is contained in:
sfraser%netscape.com 1999-03-12 05:28:22 +00:00
Родитель 816a74efd1
Коммит 895b199ee2
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -90,7 +90,7 @@ nsTextEditorKeyListener::ProcessEvent(nsIDOMEvent* aEvent)
}
//#define HAVE_EVENT_CHARCODE // on when we have the charCode in the event
#define HAVE_EVENT_CHARCODE // on when we have the charCode in the event
nsresult
nsTextEditorKeyListener::GetCharFromKeyCode(PRUint32 aKeyCode, PRBool aIsShift, char *aChar)
@ -163,7 +163,7 @@ nsTextEditorKeyListener::KeyDown(nsIDOMEvent* aKeyEvent)
case nsIDOMEvent::VK_PAGE_DOWN:
// who handles these?
#if DEBUG
printf("Key not handled");
printf("Key not handled\n");
#endif
break;

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

@ -90,7 +90,7 @@ nsTextEditorKeyListener::ProcessEvent(nsIDOMEvent* aEvent)
}
//#define HAVE_EVENT_CHARCODE // on when we have the charCode in the event
#define HAVE_EVENT_CHARCODE // on when we have the charCode in the event
nsresult
nsTextEditorKeyListener::GetCharFromKeyCode(PRUint32 aKeyCode, PRBool aIsShift, char *aChar)
@ -163,7 +163,7 @@ nsTextEditorKeyListener::KeyDown(nsIDOMEvent* aKeyEvent)
case nsIDOMEvent::VK_PAGE_DOWN:
// who handles these?
#if DEBUG
printf("Key not handled");
printf("Key not handled\n");
#endif
break;