mshtml: Improve locale stub for KeyboardEvent.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
Gabriel Ivăncescu 2022-11-07 17:35:12 +02:00 committed by Alexandre Julliard
parent ff4fde9e20
commit 08957afe17
2 changed files with 6 additions and 2 deletions

View file

@ -2154,8 +2154,11 @@ static HRESULT WINAPI DOMKeyboardEvent_get_char(IDOMKeyboardEvent *iface, VARIAN
static HRESULT WINAPI DOMKeyboardEvent_get_locale(IDOMKeyboardEvent *iface, BSTR *p)
{
DOMKeyboardEvent *This = impl_from_IDOMKeyboardEvent(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL;
FIXME("(%p)->(%p) semi-stub\n", This, p);
*p = SysAllocString(L"");
return *p ? S_OK : E_OUTOFMEMORY;
}
static const IDOMKeyboardEventVtbl DOMKeyboardEventVtbl = {

View file

@ -760,6 +760,7 @@ sync_test("keyboard_event", function() {
ok(e.location === 0, "location = " + e.location);
ok(e.detail === 0, "detail = " + e.detail);
ok(e.which === 0, "which = " + e.which);
ok(e.locale === "", "locale = " + e.locale);
});
sync_test("custom_event", function() {