Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
SimpleOSRBrowser doesn't support UP/DOWN Key
SimpleOSRBrowser doesn't support UP/DOWN Key
When I use SimpleOSRBrowser to visit www.google.com, I can't use UP/DOWN key in keyboard to select item in the dropdown list. Please see the attached picture. But cefclient in OSR mode can support this well.
You do not have the required permissions to view the files attached to this post.
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: SimpleOSRBrowser doesn't support UP/DOWN Key
Thanks for reporting the issue!
Right now I'm busy but I'll take a look as soon as I can.
Right now I'm busy but I'll take a look as soon as I can.
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: SimpleOSRBrowser doesn't support UP/DOWN Key
The latest CEF4Delphi version has the fix for that issue with the arrow keys. You can download it from GitHub :
https://github.com/salvadordf/CEF4Delphi
If you prefer to use an old version then you only have to modify this line :
https://github.com/salvadordf/CEF4Delph ... r.pas#L260
The TForm1.AppEventsMessage procedure set handled to true for the WM_KEYDOWN message only when the user pressed the TAB key :
Now it sets handled to true when the user presses the arrow keys too :
This is needed because the form sets the focus to a different control when you press the arrow keys.
https://github.com/salvadordf/CEF4Delphi
If you prefer to use an old version then you only have to modify this line :
https://github.com/salvadordf/CEF4Delph ... r.pas#L260
The TForm1.AppEventsMessage procedure set handled to true for the WM_KEYDOWN message only when the user pressed the TAB key :
Code: Select all
Handled := (Msg.wParam = VK_TAB);
Code: Select all
Handled := (Msg.wParam in [VK_LEFT, VK_RIGHT, VK_UP, VK_DOWN, VK_TAB]);
Re: SimpleOSRBrowser doesn't support UP/DOWN Key
It works now, thank you very much!