mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
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:
parent
ca2599ae8c
commit
c096f1f271
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user