Fix for bug 318235: Ctrl+Enter being treated as Ctrl+J when captured by a Javascript event

Patch by Rob Arnold (tellrob@gmail.com)
r=vlad
sr=roc
This commit is contained in:
Ere Maijala 2008-08-02 21:03:25 -07:00
parent ca2599ae8c
commit c096f1f271

View File

@ -3432,6 +3432,11 @@ BOOL nsWindow::OnChar(UINT charCode, UINT aScanCode, PRUint32 aFlags)
if (mIsAltDown && !mIsControlDown && IS_VK_DOWN(NS_VK_SPACE)) {
return FALSE;
}
// Ignore Ctrl+Enter (bug 318235)
if (mIsControlDown && charCode == 0xA) {
return FALSE;
}
// WM_CHAR with Control and Alt (== AltGr) down really means a normal character
PRBool saveIsAltDown = mIsAltDown;