[haiku-webkit-commits] r509 - webkit/trunk/WebKit/haiku/WebPositive

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Thu, 20 May 2010 18:49:18 +0000

Author: stippi
Date: Thu May 20 18:49:18 2010
New Revision: 509
URL: http://mmlr.dyndns.org/changeset/509

Log:
F11 -> Toggle fullscreen
F5  ->  Reload page. (Ticket #56)

Modified:
   webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp

Modified: webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp     Thu May 20 
17:59:00 2010        (r508)
+++ webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp     Thu May 20 
18:49:18 2010        (r509)
@@ -506,6 +506,21 @@
                } else if (bytes[0] == B_RIGHT_ARROW && modifiers == 
B_COMMAND_KEY) {
                        PostMessage(GO_FORWARD);
                        return;
+               } else if (bytes[0] == B_FUNCTION_KEY) {
+                       // Some function key Firefox compatibility
+                       int32 key;
+                       if (message->FindInt32("key", &key) == B_OK) {
+                               switch (key) {
+                                       case B_F5_KEY:
+                                               PostMessage(RELOAD);
+                                               break;
+                                       case B_F11_KEY:
+                                               PostMessage(TOGGLE_FULLSCREEN);
+                                               break;
+                                       default:
+                                               break;
+                               }
+                       }
                } else if (target == fURLInputGroup->TextView()) {
                        // Handle B_RETURN in the URL text control. This is the 
easiest
                        // way to react *only* when the user presses the return 
key in the

Other related posts:

  • » [haiku-webkit-commits] r509 - webkit/trunk/WebKit/haiku/WebPositive - webkit