Fix why escape wasn't closing the find panel as expected (#75).

Fix fullscreen icon layout spacing issue (#76).

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@576 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
phoudoin 2011-03-02 18:15:57 +00:00 committed by Alexandre Deckner
parent 552778e90c
commit 1ef6069fe4

View File

@ -466,7 +466,7 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings,
new BMessage(TOGGLE_FULLSCREEN));
toggleFullscreenButton->SetBackgroundMode(BitmapButton::MENUBAR_BACKGROUND);
BGroupLayout* menuBarGroup = BLayoutBuilder::Group<>(B_HORIZONTAL)
BGroupLayout* menuBarGroup = BLayoutBuilder::Group<>(B_HORIZONTAL, 0.0)
.Add(mainMenu)
.Add(toggleFullscreenButton, 0.0f)
;
@ -547,13 +547,6 @@ BrowserWindow::DispatchMessage(BMessage* message, BHandler* target)
} else if (bytes[0] == B_RIGHT_ARROW && modifierKeys == B_COMMAND_KEY) {
PostMessage(GO_FORWARD);
return;
} else if (bytes[0] == B_ESCAPE) {
// Let the URL input handle escape when it is the target
if (target != fURLInputGroup->TextView()) {
// Otherwise do a stop
PostMessage(STOP);
return;
}
} else if (bytes[0] == B_FUNCTION_KEY) {
// Some function key Firefox compatibility
int32 key;
@ -591,6 +584,10 @@ BrowserWindow::DispatchMessage(BMessage* message, BHandler* target)
_InvokeButtonVisibly(fFindCloseButton);
return;
}
} else if (bytes[0] == B_ESCAPE) {
// Default escape key behavior:
PostMessage(STOP);
return;
}
}
if (message->what == B_MOUSE_MOVED || message->what == B_MOUSE_DOWN