1
0
forked from x/volcanos
This commit is contained in:
harveyshao 2022-04-09 23:28:24 +08:00
parent 59877656c3
commit c277f85ad2

View File

@ -861,6 +861,13 @@ Volcanos("onmotion", {help: "动态特效", list: [], _init: function(can, targe
},
})
Volcanos("onkeymap", {help: "键盘交互", list: [], _focus: [], _init: function(can, target) {
document.body.onclick = function(event) {
if (window.webview) {
if (event.target.tagName == "A") {
window.open(event.target.href)
}
}
}
can.onkeymap._build(can), document.body.onkeydown = function(event) {
if (event.metaKey) { if (window.webview) {
switch (event.key) {