Add mouse and editable content support

This commit is contained in:
Frank A. Krueger 2018-04-16 14:02:41 -07:00
parent cd5ea217b5
commit 4c067759a5
No known key found for this signature in database
GPG Key ID: 0471C67474FFE664
2 changed files with 15 additions and 0 deletions

View File

@ -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);

View File

@ -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]);