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,604
  • 1
  • 34
  • 47
Van Coding
  • 23,476
  • 21
  • 84
  • 129
  • 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
  • 106,723
  • 76
  • 306
  • 327