Rank: Advanced Member Groups: Member
Joined: 10/24/2018 Posts: 97
|
Since we updated to the latest version we are having various issues with the Escape key, this problem becomes most clear with the following example code:
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms;
using EO.WebBrowser; using EO.WinForm;
namespace EOTestEscape { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(CreateForm()); }
private static Form CreateForm() { var form = new Form() { Size = new System.Drawing.Size(1280, 1024) };
var textBox = new TextBox { Dock = DockStyle.Top };
var webControl = new WebControl { Dock = DockStyle.Fill };
var webView = new WebView { Url = "https://www.google.com" };
webControl.WebView = webView;
var button = new Button { Dock = DockStyle.Bottom, Text = "Exit" }; button.Click += (sender, e) => form.Close();
form.Controls.Add(textBox); form.Controls.Add(webControl); form.Controls.Add(button);
form.CancelButton = button;
return form; } } }
When we either have the focus in the webview/webcontrol or in the textbox and then press Escape, nothing happens. We expect in this example that the form will close.
This looks to be a major issue, we hope that this issue gets priority and that a hotfix will be available soon.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Sorry about the problem. Please download build 19.1.81 from our download page. This build fixed this issue.
|
Rank: Advanced Member Groups: Member
Joined: 10/24/2018 Posts: 97
|
Thank you for the quick fix, this indeed fixes the issue!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Great. Thanks for confirming!
|