5

I´m developing a Google Chrome Extension which need to set the focus to the Omnibar. I haven´t found anything in the API reference. Is it possible to do that?

Thanks for your help!

computingfreak
  • 4,939
  • 1
  • 34
  • 51
Van Coding
  • 24,244
  • 24
  • 88
  • 132
  • My 'hack' would perhaps be creating a new tab page as the focus will be set to the omnibar. But I don't know how to sustain the focus. – pimvdb Feb 24 '11 at 10:19

1 Answers1

2

No such API method, plus looks like it is not possible to simulate a keyboard shortcut that puts focus into the ominbox (CTRL+L) as explained here.

Community
  • 1
  • 1
serg
  • 109,619
  • 77
  • 317
  • 330