mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 01:04:06 +08:00
opt some
This commit is contained in:
parent
f0b4f24b47
commit
3f327889e9
4
frame.js
4
frame.js
@ -1,4 +1,3 @@
|
|||||||
_can_name = "/frame.js"
|
|
||||||
Volcanos("onengine", {help: "搜索引擎", list: [], _init: function(can, meta, list, cb, target) {
|
Volcanos("onengine", {help: "搜索引擎", list: [], _init: function(can, meta, list, cb, target) {
|
||||||
can.run = function(event, cmds, cb) { var msg = can.request(event); cmds = cmds||[]
|
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)
|
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)
|
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): focus.pop() })
|
||||||
can.onengine.listen(can, "keymap.focus", function(cb) { cb? focus.push(cb): can.onkeypop._focus.length = 0 })
|
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) {
|
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)
|
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)
|
target.setSelectionRange(start, start)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
_can_name = ""
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<head>
|
<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 name="viewport" content="width=device-width,initial-scale=0.8,user-scalable=no">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>volcanos</title>
|
<title>volcanos</title>
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<head>
|
<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 name="viewport" content="width=device-width,initial-scale=0.8,user-scalable=no">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>volcanos</title>
|
<title>volcanos</title>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user