Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
GitCode
1024程序员开源挑战赛(10.23-11.14)
提交
ff299144
1
1024程序员开源挑战赛(10.23-11.14)
项目概览
GitCode
/
1024程序员开源挑战赛(10.23-11.14)
通知
180912
Star
1063
Fork
1042
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
86
列表
看板
标记
里程碑
合并请求
8
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
1
1024程序员开源挑战赛(10.23-11.14)
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
86
Issue
86
列表
看板
标记
里程碑
合并请求
8
合并请求
8
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ff299144
编写于
3月 02, 2020
作者:
Z
ztree
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* add demo 'Keyboard Navigation' Thanks @bseddon
上级
a9244882
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
466 addition
and
2 deletion
+466
-2
demo/cn/index.html
demo/cn/index.html
+1
-0
demo/cn/super/fuzzySearch.html
demo/cn/super/fuzzySearch.html
+1
-1
demo/cn/super/keyboard_navigation.html
demo/cn/super/keyboard_navigation.html
+102
-0
demo/en/index.html
demo/en/index.html
+1
-0
demo/en/super/fuzzySearch.html
demo/en/super/fuzzySearch.html
+1
-1
demo/en/super/keyboard_navigation.html
demo/en/super/keyboard_navigation.html
+102
-0
demo/js/keyboard_navigation.js
demo/js/keyboard_navigation.js
+255
-0
log v3.x.txt
log v3.x.txt
+3
-0
未找到文件。
demo/cn/index.html
浏览文件 @
ff299144
...
...
@@ -123,6 +123,7 @@
{id: 508, pId: 5, name: "右键菜单 的 实现", file: "super/rightClickMenu"},
{id: 511, pId: 5, name: "与其他 DOM 拖拽互动", file: "super/dragWithOther"},
{id: 512, pId: 5, name: "异步加载模式下全部展开", file: "super/asyncForAll"},
{id: 517, pId: 5, name: "设置快捷键", file: "super/keyboard_navigation"},
{id: 6, pId: 0, name: "其他扩展功能 演示", open: false},
{id: 601, pId: 6, name: "隐藏普通节点", file: "exhide/common"},
...
...
demo/cn/super/fuzzySearch.html
浏览文件 @
ff299144
...
...
@@ -51,7 +51,7 @@
<BODY>
<h1>
根据关键字模糊查找节点
</h1>
<h6>
[ 文件路径:
fuzzySearch
/fuzzySearch.html ]
</h6>
<h6>
[ 文件路径:
super
/fuzzySearch.html ]
</h6>
<div
class=
"content_wrap"
>
<div
class=
"zTreeDemoBackground left"
>
<ul
id=
"treeDemo"
class=
"ztree"
></ul>
...
...
demo/cn/super/keyboard_navigation.html
0 → 100644
浏览文件 @
ff299144
<!DOCTYPE html>
<HTML>
<HEAD>
<TITLE>
ZTREE DEMO - Keyboard navigation
</TITLE>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=UTF-8"
>
<link
rel=
"stylesheet"
href=
"../../../css/demo.css"
type=
"text/css"
>
<link
rel=
"stylesheet"
href=
"../../../css/zTreeStyle/zTreeStyle.css"
type=
"text/css"
>
<script
type=
"text/javascript"
src=
"../../../js/jquery-1.4.4.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../js/keyboard_navigation.js"
></script>
<script
type=
"text/javascript"
src=
"../../../js/jquery.ztree.core.js"
></script>
<script
type=
"text/javascript"
src=
"../../../js/jquery.ztree.exedit.js"
></script>
<SCRIPT
type=
"text/javascript"
>
var setting = {
data: {
simpleData: {
enable: true
}
}
};
var zNodes =[
{ id:1, pId:0, name:"Custom Icon 01", open:true, iconSkin:"pIcon01", accesskey: 'c'},
{ id:11, pId:1, name:"leaf node 01", iconSkin:"icon01", accesskey: 'l'},
{ id:12, pId:1, name:"leaf node 02", iconSkin:"icon02"},
{ id:13, pId:1, name:"parent node 03", iconSkin:"pIcon01", accesskey: 'p'},
{ id:131, pId:13, name:"leaf node 01", iconSkin:"icon01"},
{ id:132, pId:13, name:"leaf node 02", iconSkin:"icon02"},
{ id:133, pId:13, name:"leaf node 03", iconSkin:"icon03"},
{ id:2, pId:0, name:"Custom Icon 02", open:true, iconSkin:"pIcon02"},
{ id:21, pId:2, name:"leaf node 01", iconSkin:"icon04"},
{ id:22, pId:2, name:"leaf node 02", iconSkin:"icon05"},
{ id:23, pId:2, name:"leaf node 03", iconSkin:"icon06"},
{ id:3, pId:0, name:"no Custom Icon", open:true, accesskey: 'n' },
{ id:31, pId:3, name:"leaf node 01"},
{ id:32, pId:3, name:"leaf node 02"},
{ id:33, pId:3, name:"leaf node 03"}
];
var $ = jQuery;
$(document).ready(function()
{
var element = "#treeDemo";
var zTree = $.fn.zTree.init($(element), setting, zNodes);
// Initialize keyboard navigation
$.fn.zTreeKeyboardNavigation(zTree, document.body);
});
</SCRIPT>
<style
type=
"text/css"
>
.ztree
li
>
a
{
border-left
:
1px
solid
white
;
}
.ztree
li
>
a
.curSelectedNode
{
border-radius
:
3px
;
}
.ztree
li
span
.button.pIcon01_ico_open
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/1_open.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.pIcon01_ico_close
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/1_close.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.pIcon02_ico_open
,
.ztree
li
span
.button.pIcon02_ico_close
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/2.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.icon01_ico_docu
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/3.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.icon02_ico_docu
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/4.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.icon03_ico_docu
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/5.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.icon04_ico_docu
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/6.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.icon05_ico_docu
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/7.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.icon06_ico_docu
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/8.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
</style>
</HEAD>
<BODY>
<h1>
设置快捷键
</h1>
<h6>
[ 文件路径: super/keyboard_navigation.html ]
</h6>
<div
class=
"content_wrap"
>
<div
class=
"zTreeDemoBackground left"
>
<ul
id=
"treeDemo"
class=
"ztree"
></ul>
</div>
<div
class=
"right"
>
<ul
class=
"info"
>
<li
class=
"title"
><h2>
1、设置说明
</h2>
<ul
class=
"list"
>
<li>
键盘导航不需要特殊配置。
</li>
<li>
只需要加载 keyboard_navigation.js 文件并初始化。
</li>
</ul>
</li>
<li
class=
"title"
><h2>
2、快捷键说明
</h2>
<ul
class=
"list"
>
<li>
Home (keycode 36):定位到第一个根节点
</li>
<li>
End (keycode 35):定位到树上最后一个节点
</li>
<li>
下 (keycode 39):定位到下一个同级节点
</li>
<li>
右 (keycode 40):定位到下一个可视节点(包括子节点/同级节点 以及后面的父级节点)
</li>
<li>
上 (keycode 37):定位到前一个同级节点
</li>
<li>
左 (keycode 38):定位到前一个可视节点(包括子节点/同级节点 以及后面的父级节点)
</li>
<li>
空格 (keycode 32):切换当前父节点 折叠、展开状态
</li>
</ul>
</li>
</ul>
</div>
</div>
</BODY>
</HTML>
\ No newline at end of file
demo/en/index.html
浏览文件 @
ff299144
...
...
@@ -123,6 +123,7 @@
{id: 508, pId: 5, name: "Right-click Menu", file: "super/rightClickMenu"},
{id: 511, pId: 5, name: "Drag With Other DOMs", file: "super/dragWithOther"},
{id: 512, pId: 5, name: "Expand All Nodes with Async", file: "super/asyncForAll"},
{id: 517, pId: 5, name: "Keyboard Navigation", file: "super/keyboard_navigation"},
{id: 6, pId: 0, name: "Other Extension Package", open: false},
{id: 601, pId: 6, name: "hide ordinary node", file: "exhide/common"},
...
...
demo/en/super/fuzzySearch.html
浏览文件 @
ff299144
...
...
@@ -51,7 +51,7 @@
<BODY>
<h1>
Fuzzy Search
</h1>
<h6>
[ File Path:
fuzzySearch
/fuzzySearch.html ]
</h6>
<h6>
[ File Path:
super
/fuzzySearch.html ]
</h6>
<div
class=
"content_wrap"
>
<div
class=
"zTreeDemoBackground left"
>
<ul
id=
"treeDemo"
class=
"ztree"
></ul>
...
...
demo/en/super/keyboard_navigation.html
0 → 100644
浏览文件 @
ff299144
<!DOCTYPE html>
<HTML>
<HEAD>
<TITLE>
ZTREE DEMO - Keyboard navigation
</TITLE>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=UTF-8"
>
<link
rel=
"stylesheet"
href=
"../../../css/demo.css"
type=
"text/css"
>
<link
rel=
"stylesheet"
href=
"../../../css/zTreeStyle/zTreeStyle.css"
type=
"text/css"
>
<script
type=
"text/javascript"
src=
"../../../js/jquery-1.4.4.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../js/keyboard_navigation.js"
></script>
<script
type=
"text/javascript"
src=
"../../../js/jquery.ztree.core.js"
></script>
<script
type=
"text/javascript"
src=
"../../../js/jquery.ztree.exedit.js"
></script>
<SCRIPT
type=
"text/javascript"
>
var setting = {
data: {
simpleData: {
enable: true
}
}
};
var zNodes =[
{ id:1, pId:0, name:"Custom Icon 01", open:true, iconSkin:"pIcon01", accesskey: 'c'},
{ id:11, pId:1, name:"leaf node 01", iconSkin:"icon01", accesskey: 'l'},
{ id:12, pId:1, name:"leaf node 02", iconSkin:"icon02"},
{ id:13, pId:1, name:"parent node 03", iconSkin:"pIcon01", accesskey: 'p'},
{ id:131, pId:13, name:"leaf node 01", iconSkin:"icon01"},
{ id:132, pId:13, name:"leaf node 02", iconSkin:"icon02"},
{ id:133, pId:13, name:"leaf node 03", iconSkin:"icon03"},
{ id:2, pId:0, name:"Custom Icon 02", open:true, iconSkin:"pIcon02"},
{ id:21, pId:2, name:"leaf node 01", iconSkin:"icon04"},
{ id:22, pId:2, name:"leaf node 02", iconSkin:"icon05"},
{ id:23, pId:2, name:"leaf node 03", iconSkin:"icon06"},
{ id:3, pId:0, name:"no Custom Icon", open:true, accesskey: 'n' },
{ id:31, pId:3, name:"leaf node 01"},
{ id:32, pId:3, name:"leaf node 02"},
{ id:33, pId:3, name:"leaf node 03"}
];
var $ = jQuery;
$(document).ready(function()
{
var element = "#treeDemo";
var zTree = $.fn.zTree.init($(element), setting, zNodes);
// Initialize keyboard navigation
$.fn.zTreeKeyboardNavigation(zTree, document.body);
});
</SCRIPT>
<style
type=
"text/css"
>
.ztree
li
>
a
{
border-left
:
1px
solid
white
;
}
.ztree
li
>
a
.curSelectedNode
{
border-radius
:
3px
;
}
.ztree
li
span
.button.pIcon01_ico_open
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/1_open.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.pIcon01_ico_close
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/1_close.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.pIcon02_ico_open
,
.ztree
li
span
.button.pIcon02_ico_close
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/2.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.icon01_ico_docu
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/3.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.icon02_ico_docu
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/4.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.icon03_ico_docu
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/5.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.icon04_ico_docu
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/6.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.icon05_ico_docu
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/7.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
.ztree
li
span
.button.icon06_ico_docu
{
margin-right
:
2px
;
background
:
url(../../../css/zTreeStyle/img/diy/8.png)
no-repeat
scroll
0
0
transparent
;
vertical-align
:
top
;
*
vertical-align
:
middle
}
</style>
</HEAD>
<BODY>
<h1>
Keyboard navigation
</h1>
<h6>
[ File Path: super/keyboard_navigation.html ]
</h6>
<div
class=
"content_wrap"
>
<div
class=
"zTreeDemoBackground left"
>
<ul
id=
"treeDemo"
class=
"ztree"
></ul>
</div>
<div
class=
"right"
>
<ul
class=
"info"
>
<li
class=
"title"
><h2>
1. Explanation of setting
</h2>
<ul
class=
"list"
>
<li>
Keyboard navigation does not require special configuration setting.
</li>
<li>
It does require that the keyboard_navigation.js file is loaded and the function initialized.
</li>
</ul>
</li>
<li
class=
"title"
><h2>
2. Explanation of navigation
</h2>
<ul
class=
"list"
>
<li>
Home: home key (keycode 36) Goes to the first root element is visible
</li>
<li>
End: end key (keycode 35) Goes to the last leaf node and will expand nodes and scroll the element into view
</li>
<li>
Down: right cursor key (keycode 39) Goes to the next visible node in the tree following the hierarchy
</li>
<li>
Next: down cursor key (keycode 40) Goes to the next visible node at the same level
</li>
<li>
Up: up cursor key (keycode 37) Goes to the prior visible node at the same level
</li>
<li>
Previous: left cursor key (keycode 38) Goes to the prior visible node following the hierarchy
</li>
<li>
Toggle: space key (keycode 32) Toggles the expand/collapse state of a parent node
</li>
</ul>
</li>
</ul>
</div>
</div>
</BODY>
</HTML>
\ No newline at end of file
demo/js/keyboard_navigation.js
0 → 100644
浏览文件 @
ff299144
/*
* JQuery zTree keyboard navigation extension
* zTree v3.5.42 or later
* http://www.xbrlquery.com/
*
* Copyright (c) 2019 Bill Seddon
*
* Licensed same as jquery - MIT License
* http://www.opensource.org/licenses/mit-license.php
*
* Date: 2020-02-18
*/
(
function
(
$
)
{
/**
* Creates a function that adds keyboard navigation:
* Home: home key (keycode 36) Goes to the first root element is visible
* End: end key (keycode 35) Goes to the last leaf node and will expand nodes and scroll the element into view
* Down: right cursor key (keycode 39) Goes to the next visible node in the tree following the hierarchy
* Next: down cursor key (keycode 40) Goes to the next visible node at the same level
* Up: up cursor key (keycode 37) Goes to the prior visible node at the same level
* Previous: left cursor key (keycode 38) Goes to the prior visible node following the hierarchy
* Toggle: space key (keycode 32) Toggles the expand/collapse state of a parent node
*/
$
.
fn
.
zTreeKeyboardNavigation
=
function
(
zTree
,
element
)
{
if
(
typeof
element
===
'
string
'
||
element
instanceof
String
)
{
element
=
$
(
element
);
}
var
rootNodes
=
zTree
.
getNodes
();
if
(
!
rootNodes
)
return
;
var
focusSelectedNode
=
function
()
{
if
(
(
selectedNodes
=
zTree
.
getSelectedNodes
()
)
&&
selectedNodes
.
length
)
{
$
(
"
#
"
+
selectedNodes
[
0
].
tId
).
focus
();
}
}
$
(
element
).
bind
(
'
keydown
'
,
function
(
e
)
{
var
selectedNodes
=
zTree
.
getSelectedNodes
();
var
selectedNode
=
selectedNodes
.
length
?
selectedNodes
[
0
]
:
null
;
var
processSpace
=
function
()
{
// If there are no nodes or the selected node is not a parent, get out
if
(
selectedNode
&&
selectedNode
.
isParent
)
{
// Toggle the node
zTree
.
expandNode
(
selectedNode
,
null
,
null
,
null
,
false
);
}
}
var
processHome
=
function
()
{
zTree
.
selectNode
(
rootNodes
[
0
],
false
,
true
);
}
var
processEnd
=
function
()
{
var
nodes
=
zTree
.
transformToArray
(
rootNodes
);
// Select the last node
zTree
.
selectNode
(
nodes
[
nodes
.
length
-
1
]
);
}
var
processUp
=
function
()
{
var
priorNode
;
if
(
selectedNode
)
{
priorNode
=
selectedNode
.
getPreNode
();
if
(
!
priorNode
)
return
;
}
else
{
processEnd
();
}
if
(
!
priorNode
)
return
;
zTree
.
selectNode
(
priorNode
);
}
var
processDown
=
function
()
{
var
nextNode
;
if
(
selectedNode
)
{
nextNode
=
selectedNode
.
getNextNode
();
if
(
!
nextNode
)
return
;
}
else
{
processHome
();
}
if
(
!
nextNode
)
return
;
zTree
.
selectNode
(
nextNode
);
}
var
processOut
=
function
()
{
if
(
!
selectedNode
)
return
;
var
parentNode
=
selectedNode
.
getParentNode
();
var
priorNode
=
selectedNode
.
getPreNode
();
if
(
!
parentNode
&&
!
priorNode
)
return
;
// Must have been the root node
if
(
priorNode
)
{
if
(
priorNode
.
isParent
)
{
// There is a prior node, now the the question is where is the last open node?
while
(
priorNode
)
{
if
(
!
priorNode
.
isParent
||
!
priorNode
.
open
||
!
priorNode
.
children
)
break
;
priorNode
=
priorNode
.
children
[
priorNode
.
children
.
length
-
1
];
}
zTree
.
selectNode
(
priorNode
);
return
;
}
else
{
zTree
.
selectNode
(
priorNode
);
return
;
}
}
// Find the parent node with a valid prior sibling
if
(
parentNode
)
{
// This call should be silent otherwise (in my view a bug in)
// selectNode causes the root node to blur
zTree
.
selectNode
(
parentNode
,
false
,
true
);
}
}
var
processIn
=
function
()
{
if
(
!
selectedNode
)
return
;
if
(
selectedNode
.
isParent
&&
selectedNode
.
open
&&
selectedNode
.
children
)
{
zTree
.
selectNode
(
selectedNode
.
children
[
0
]
);
return
;
}
var
nextNode
=
selectedNode
.
getNextNode
();
if
(
nextNode
)
{
zTree
.
selectNode
(
nextNode
);
}
else
{
// Cannot be root if there is a selected node that is not a parent
var
node
=
selectedNode
;
// Find the parent node with a valid next sibling
while
(
node
=
node
.
getParentNode
()
)
{
var
nextNode
=
node
.
getNextNode
();
if
(
nextNode
)
{
zTree
.
selectNode
(
nextNode
);
break
;
}
}
}
}
var
processLetter
=
function
(
keyCode
)
{
if
(
!
Array
.
from
(
{
length
:
26
},
(
v
,
i
)
=>
i
+
65
).
includes
(
keyCode
&
95
)
)
return
false
;
var
nodes
=
zTree
.
transformToArray
(
rootNodes
);
nodes
=
nodes
.
filter
(
node
=>
{
return
'
accesskey
'
in
node
&&
node
.
accesskey
.
length
&&
(
node
.
accesskey
.
charCodeAt
(
0
)
&
95
)
==
keyCode
;
}
);
if
(
!
nodes
.
length
)
return
false
;
var
selectedNodes
=
zTree
.
getSelectedNodes
();
if
(
!
selectedNodes
.
length
)
return
false
;
if
(
selectedNodes
[
0
]
==
nodes
[
0
]
)
return
false
;
zTree
.
selectNode
(
nodes
[
0
]
);
return
true
;
}
// console.log('before');
// console.log(document.activeElement);
switch
(
e
.
keyCode
)
{
case
32
:
/* Toggle parent nodes */
processSpace
();
return
;
case
36
:
/* Home - go to the root node */
processHome
();
break
;
case
35
:
/* End - go to the last node */
processEnd
();
break
;
case
33
:
/* PageUp */
// Do nothing
break
;
case
34
:
/* PageDown */
// Do nothing
break
;
case
37
:
/* Left */
processOut
();
break
;
case
38
:
/* Up */
processUp
();
break
;
case
39
:
/* Right */
processIn
();
break
;
case
40
:
/* Down */
processDown
();
break
;
default
:
if
(
!
processLetter
(
e
.
keyCode
&
95
)
)
return
;
break
;
}
// console.log('after');
// console.log(document.activeElement);
focusSelectedNode
();
}
);
$
(
element
).
trigger
({
type
:
'
keydown
'
,
which
:
36
,
keyCode
:
36
});
focusSelectedNode
();
}
}
)(
jQuery
);
\ No newline at end of file
log v3.x.txt
浏览文件 @
ff299144
...
...
@@ -14,6 +14,9 @@
</font>
*2020.03.02* v3.5.42
* add demo 'Keyboard Navigation' Thanks @bseddon
*2020.01.19* v3.5.42
* merge PullRequest(fixed 'HTMLElement undefined' error) Thanks @ChangJin0520
* merge PullRequest(Add TypeScript type definition) Thanks @Itroads
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录