1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
shylinux 2021-10-22 15:54:02 +08:00
parent f0b4f24b47
commit 3f327889e9
3 changed files with 6 additions and 8 deletions

View File

@ -1,4 +1,3 @@
_can_name = "/frame.js"
Volcanos("onengine", {help: "搜索引擎", list: [], _init: function(can, meta, list, cb, target) {
can.run = function(event, cmds, cb) { var msg = can.request(event); cmds = cmds||[]
return (can.onengine[cmds[0]]||can.onengine._remote)(event, can, msg, can, cmds, cb)
@ -628,7 +627,7 @@ Volcanos("onkeypop", {help: "键盘交互", list: [], _focus: [], _init: functio
var focus = can.onkeypop._focus; can.onkeypop._build(can)
// can.onengine.listen(can, "keymap.focus", function(cb) { cb? focus.push(cb): focus.pop() })
can.onengine.listen(can, "keymap.focus", function(cb) { cb? focus.push(cb): can.onkeypop._focus.length = 0 })
target.onkeydown = function(event) { if (focus.length > 0) { return focus[focus.length-1](event) }
document.body.onkeydown = function(event) { if (focus.length > 0) { return focus[focus.length-1](event) }
event.target == target && can.page.Select(can, target, "fieldset.Action>div.output", function(item) {
target._keys = can.onkeypop._parse(event, can, "normal", target._keys||[], item)
})
@ -778,4 +777,3 @@ Volcanos("onkeypop", {help: "键盘交互", list: [], _focus: [], _init: functio
target.setSelectionRange(start, start)
},
})
_can_name = ""

View File

@ -1,10 +1,5 @@
<!DOCTYPE html>
<head>
<link rel="apple-touch-icon-precomposed" href="/publish/app.png"/>
<link rel="apple-touch-startup-image" href="/publish/splash.png"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<meta name="viewport" content="width=device-width,initial-scale=0.8,user-scalable=no">
<meta charset="utf-8">
<title>volcanos</title>

View File

@ -1,5 +1,10 @@
<!DOCTYPE html>
<head>
<link rel="apple-touch-icon-precomposed" href="/publish/app.png"/>
<link rel="apple-touch-startup-image" href="/publish/splash.png"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<meta name="viewport" content="width=device-width,initial-scale=0.8,user-scalable=no">
<meta charset="utf-8">
<title>volcanos</title>