Jacek Caban : mshtml: Added IHTMLElement2::put_accessKey implementation.

Alexandre Julliard julliard at winehq.org
Thu Jun 19 06:38:52 CDT 2008


Module: wine
Branch: master
Commit: 6305be26b34f69862162194c89a7bb4af15ae5b4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6305be26b34f69862162194c89a7bb4af15ae5b4

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Jun 18 17:07:27 2008 -0500

mshtml: Added IHTMLElement2::put_accessKey implementation.

---

 dlls/mshtml/htmlelem2.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/htmlelem2.c b/dlls/mshtml/htmlelem2.c
index 6ef3098..a1fba29 100644
--- a/dlls/mshtml/htmlelem2.c
+++ b/dlls/mshtml/htmlelem2.c
@@ -416,8 +416,15 @@ static HRESULT WINAPI HTMLElement2_focus(IHTMLElement2 *iface)
 static HRESULT WINAPI HTMLElement2_put_accessKey(IHTMLElement2 *iface, BSTR v)
 {
     HTMLElement *This = HTMLELEM2_THIS(iface);
-    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
-    return E_NOTIMPL;
+    VARIANT var;
+
+    static WCHAR accessKeyW[] = {'a','c','c','e','s','s','K','e','y',0};
+
+    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
+
+    V_VT(&var) = VT_BSTR;
+    V_BSTR(&var) = v;
+    return IHTMLElement_setAttribute(HTMLELEM(This), accessKeyW, var, 0);
 }
 
 static HRESULT WINAPI HTMLElement2_get_accessKey(IHTMLElement2 *iface, BSTR *p)




More information about the wine-cvs mailing list