From 4c067759a5fd8548a5a643d0d48cfd55714c4608 Mon Sep 17 00:00:00 2001 From: "Frank A. Krueger" Date: Mon, 16 Apr 2018 14:02:41 -0700 Subject: [PATCH] Add mouse and editable content support --- Ooui/Document.cs | 10 ++++++++++ Ooui/Element.cs | 5 +++++ 2 files changed, 15 insertions(+) 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]);