зеркало из https://github.com/mozilla/gecko-dev.git
Filtering out form submission in all cases, to get location bar working
for mac. This will be fixed RSN.
This commit is contained in:
Родитель
566d7c3cad
Коммит
9b550a3834
|
@ -616,7 +616,8 @@ NS_METHOD nsFormControlFrame::HandleEvent(nsIPresContext& aPresContext,
|
|||
if (NS_KEY_EVENT == aEvent->eventStructType) {
|
||||
nsKeyEvent* keyEvent = (nsKeyEvent*)aEvent;
|
||||
if (NS_VK_RETURN == keyEvent->keyCode) {
|
||||
EnterPressed(aPresContext);
|
||||
// XXX breaking the mac to fix the tree, go figure
|
||||
// EnterPressed(aPresContext);
|
||||
}
|
||||
else if (NS_VK_SPACE == keyEvent->keyCode) {
|
||||
MouseClicked(&aPresContext);
|
||||
|
|
|
@ -616,7 +616,8 @@ NS_METHOD nsFormControlFrame::HandleEvent(nsIPresContext& aPresContext,
|
|||
if (NS_KEY_EVENT == aEvent->eventStructType) {
|
||||
nsKeyEvent* keyEvent = (nsKeyEvent*)aEvent;
|
||||
if (NS_VK_RETURN == keyEvent->keyCode) {
|
||||
EnterPressed(aPresContext);
|
||||
// XXX breaking the mac to fix the tree, go figure
|
||||
// EnterPressed(aPresContext);
|
||||
}
|
||||
else if (NS_VK_SPACE == keyEvent->keyCode) {
|
||||
MouseClicked(&aPresContext);
|
||||
|
|
Загрузка…
Ссылка в новой задаче