#14974 closed defect (fixed)

right alt + key is unnecessarily intercepted

Reported by: maniek Owned by:
Priority: normal Milestone: 2.9.5
Component: WebView Version: stable-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: no

Description

This is for webview on Windows

On some keyboard layouts you use right_alt+key to enter national characters. For example, right_alt+o gives "ó" in Polish-programmers layout.
Windows maps right alt to alt+ctrl in this keyboard layout.

Look at DocHostUIHandler::TranslateAccelerator : it blocks ctrl+o, which means that right alt+o will also be blocked.

I think the test in the abovementioned function should say:

if((GetKeyState(VK_CONTROL) & 0x8000 ) && !((GetKeyState(VK_MENU) & 0x8000 )){

Change History (3)

comment:1 Changed 15 months ago by maniek

  • Milestone set to 2.9.5
  • Version set to 2.9-svn

comment:2 Changed 15 months ago by steve_lamerton

  • Status changed from new to confirmed

Thanks for reporting this, I can confirm that it does indeed occur. I will commit the fix shortly.

comment:3 Changed 15 months ago by SJL

  • Resolution set to fixed
  • Status changed from confirmed to closed

(In [73381]) When handling accelerators in wxWebView make sure that we do not block right-alt which can be mapped to alt + ctrl.

Fixes #14974.

Note: See TracTickets for help on using tickets.