virtualkeyboardpolicy
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
virtualkeyboardpolicy
全局属性是一个枚举属性。当在元素上指定元素内容可编辑时(例如,它是 <input>
或 <textarea>
元素,或具有 contenteditable
属性的元素),它会控制平板电脑、手机或其他可能没有硬件键盘的设备上的屏幕虚拟键盘行为。
该属性必须设置以下值之一:
auto
或空字符串:在元素被聚焦或被点击时会自动显示虚拟键盘。manual
:它会将元素的聚焦和点击与虚拟键盘的状态分离。
规范
Specification |
---|
VirtualKeyboard API # dom-elementcontenteditable-virtualkeyboardpolicy |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
virtualkeyboardpolicy |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
- See implementation notes.
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.