WebCore:
[WebKit-https.git] / WebCore / html / HTMLButtonElement.cpp
index 6c1a3c7a9f17fa3b144a9e4538b8e43f38fb838d..20c5822ee01d4ad062b3930309698d7e5137ed41 100644 (file)
@@ -138,6 +138,7 @@ bool HTMLButtonElement::appendFormData(FormDataList& formData, bool)
 
 void HTMLButtonElement::accessKeyAction(bool sendToAnyElement)
 {   
+    focus();
     // send the mouse button events iff the caller specified sendToAnyElement
     dispatchSimulatedClick(0, sendToAnyElement);
 }