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:
Pedro Pontes 2018-12-19 07:44:51 +01:00 committed by Shelley Vohr
parent ed3e5739dc
commit 9c783f53ba
5 changed files with 171 additions and 0 deletions

View file

@ -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;