зеркало из https://github.com/mozilla/gecko-dev.git
Throw the switch so we now pay attention to the charCode in the key event.
This commit is contained in:
Родитель
816a74efd1
Коммит
895b199ee2
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче