魔墙:修复未选中元素键盘上下左右报错
This commit is contained in:
parent
c0b97255d3
commit
4f83a9b0e5
|
@ -9,18 +9,17 @@
|
|||
if (!loading && evt.keyCode == 27) {
|
||||
show_dialog = false;
|
||||
}
|
||||
if(evt.keyCode == 37){//左
|
||||
if(evt.keyCode == 37&&(current_index!=-1||multiple_select.length>1)){//左
|
||||
sub_x();
|
||||
}
|
||||
if(evt.keyCode==38){//上
|
||||
if(evt.keyCode==38&&(current_index!=-1||multiple_select.length>1)){//上
|
||||
sub_y();
|
||||
}
|
||||
if(evt.keyCode==39){//右
|
||||
if(evt.keyCode==39&&(current_index!=-1||multiple_select.length>1)){//右
|
||||
add_x();
|
||||
}
|
||||
if(evt.keyCode==40){//下
|
||||
if(evt.keyCode==40&&(current_index!=-1||multiple_select.length>1)){//下
|
||||
add_y();
|
||||
|
||||
}
|
||||
if(evt.keyCode==17){//ctrl
|
||||
multiple=true;
|
||||
|
|
Loading…
Reference in New Issue