Answers for "cefsharp javascript send enter"

0

cefsharp javascript send enter

void SendKeyEnter()
        { //this avoids javascript and dose this threw system
            KeyEvent enter = new CefSharp.KeyEvent();
            enter.WindowsKeyCode = (int)Keys.Enter;//keyEvent.WindowsKeyCode = (int)Keys.Enter;
            enter.FocusOnEditableField = true;
            enter.IsSystemKey = false;
            enter.Type = KeyEventType.RawKeyDown;
            browser.GetBrowser().GetHost().SendKeyEvent(enter);
            enter.FocusOnEditableField = true;
            enter.IsSystemKey = false;
            enter.Type = KeyEventType.KeyUp;
            browser.GetBrowser().GetHost().SendKeyEvent(enter);
        }
//it works may be over kill
//more hints await browser.EvaluateScriptAsync("document.querySelector('.quill-editor.ql-container > div.ql-editor.ql-blank').focus()';");
Posted by: Guest on September-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language