omnibox.OnInputEnteredDisposition
omnibox.OnInputEnteredDisposition
类型描述了扩展应如何处理用户在地址栏的下拉菜单中的推荐中的选择。
它将与选择本身一起传递到 omnibox.onInputEntered
事件监听器中。
类型
该类型的取值是字符串,可以取以下值之一:
- "currentTab"
-
在当前标签页中打开选择的内容。
- "newForegroundTab"
-
在新标签页中打开选择的内容,并将新标签页置于前台。
- "newBackgroundTab"
-
在新后台标签页中打开选择的内容,并保持当前标签页在前台。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
OnInputEnteredDisposition |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
备注:
该 API 基于 Chromium 的 chrome.omnibox
API。