fix: do not allow the window to grab focus when tabbing / shift+tabbing (#16042)
* fix: do not allow the window to grab focus when tabbing / shift+tabbing * test: add tests.
This commit is contained in:
parent
ed3e5739dc
commit
9c783f53ba
5 changed files with 171 additions and 0 deletions
|
@ -98,6 +98,7 @@ class CommonWebContentsDelegate : public content::WebContentsDelegate,
|
|||
blink::WebSecurityStyle GetSecurityStyle(
|
||||
content::WebContents* web_contents,
|
||||
content::SecurityStyleExplanations* explanations) override;
|
||||
bool TakeFocus(content::WebContents* source, bool reverse) override;
|
||||
void HandleKeyboardEvent(
|
||||
content::WebContents* source,
|
||||
const content::NativeWebKeyboardEvent& event) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue