Page 1 of 1
SimpleOSRBrowser doesn't support UP/DOWN Key
Posted: Mon Jun 10, 2019 2:48 pm
by tad.chen
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.
Re: SimpleOSRBrowser doesn't support UP/DOWN Key
Posted: Tue Jun 11, 2019 12:52 pm
by salvadordf
Thanks for reporting the issue!
Right now I'm busy but I'll take a look as soon as I can.
Re: SimpleOSRBrowser doesn't support UP/DOWN Key
Posted: Wed Jun 19, 2019 3:17 pm
by salvadordf
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 :
Code: Select all
Handled := (Msg.wParam in [VK_LEFT, VK_RIGHT, VK_UP, VK_DOWN, VK_TAB]);
This is needed because the form sets the focus to a different control when you press the arrow keys.
Re: SimpleOSRBrowser doesn't support UP/DOWN Key
Posted: Sat Jun 22, 2019 3:10 am
by tad.chen
It works now, thank you very much!