diff --git a/Ooui/Document.cs b/Ooui/Document.cs index 0ce4df3..185392d 100644 --- a/Ooui/Document.cs +++ b/Ooui/Document.cs @@ -15,6 +15,16 @@ namespace Ooui Body.MessageSent += Proxy_MessageSent; } + public void ReleaseCapture () + { + Call ("releaseCapture"); + } + + public void ExecCommand (string commandName, bool showDefaultUI, string valueArgument = null) + { + Call ("execCommand", commandName, showDefaultUI, valueArgument); + } + void Proxy_MessageSent (Message message) { Send (message); diff --git a/Ooui/Element.cs b/Ooui/Element.cs index 2e066f0..b51b10e 100644 --- a/Ooui/Element.cs +++ b/Ooui/Element.cs @@ -238,6 +238,11 @@ namespace Ooui } } + public void SetCapture (bool retargetToElement) + { + Call ("setCapture", retargetToElement); + } + void HandleStylePropertyChanged (object sender, PropertyChangedEventArgs e) { SendSet ("style." + Style.GetJsName (e.PropertyName), Style[e.PropertyName]);