Apply patch by Matt Madia: Add the escape key as a shortcut to stop page loads. Closes ticket #6409.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@541 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
anevilyak 2010-07-31 19:12:48 +00:00 committed by Alexandre Deckner
parent e71c5717b1
commit a4841f3a5d

View File

@ -544,6 +544,9 @@ BrowserWindow::DispatchMessage(BMessage* message, BHandler* target)
} else if (bytes[0] == B_RIGHT_ARROW && modifiers == B_COMMAND_KEY) { } else if (bytes[0] == B_RIGHT_ARROW && modifiers == B_COMMAND_KEY) {
PostMessage(GO_FORWARD); PostMessage(GO_FORWARD);
return; return;
} else if (bytes[0] == B_ESCAPE) {
PostMessage(STOP);
return;
} else if (bytes[0] == B_FUNCTION_KEY) { } else if (bytes[0] == B_FUNCTION_KEY) {
// Some function key Firefox compatibility // Some function key Firefox compatibility
int32 key; int32 key;