CefSharp icon indicating copy to clipboard operation
CefSharp copied to clipboard

WPF ALT-S Key Combination Not Working

Open drumboog opened this issue 11 years ago • 4 comments

The accesskey attribute works as expected in CEF and the WinForms sample, but the keystroke seems to be intercepted in a Wpf application.

Steps to reproduce: Run CefSharp.Wpf.Example. Navigate to http://www.w3.org/WAI/UA/TS/html401/cp0101/0101-ACCESSKEY-INPUT.html Press Alt+s No action is taken

Run CefSharp.WinForms.Example Navigate to http://www.w3.org/WAI/UA/TS/html401/cp0101/0101-ACCESSKEY-INPUT.html Press Alt+s The page is redirected because of the accesskey attribute

drumboog avatar Dec 17 '14 14:12 drumboog

Have you tried debugging the examples using the CefSharp source code and seeing what the problem might be?

Relevant code you might want to put breakpoints at:

Forwarding Windows key messages https://github.com/cefsharp/CefSharp/blob/b81da7bd5ad2e3b10bad21f213b8cf1e251c9e5e/CefSharp.Wpf/ChromiumWebBrowser.cs#L615-L640

A comment about weirdness in not all key presses being sent as WM_ messages and extra special handling: https://github.com/cefsharp/CefSharp/blob/b81da7bd5ad2e3b10bad21f213b8cf1e251c9e5e/CefSharp.Wpf/ChromiumWebBrowser.cs#L850-L862

jankurianski avatar Dec 17 '14 23:12 jankurianski

Does this bug also occur in CEF's cefclient.exe test application with offscreen rendering enabled? I.e. is this a CEF issue or a CefSharp issue?

jankurianski avatar Dec 17 '14 23:12 jankurianski

The page is redirected because of the accesskey attribute

As @jankurianski suggests the problem isn't with the accesskey attribute it's the keyboard handling.

amaitland avatar Dec 18 '14 02:12 amaitland

I've created merged #695 into the cef/2171 branch, so your welcome to test this again against that branch.

amaitland avatar Jan 05 '15 00:01 amaitland