|
@@ -370,10 +370,10 @@ export default {
|
|
this.markers = data || [];
|
|
this.markers = data || [];
|
|
},
|
|
},
|
|
keyEvent(e) {
|
|
keyEvent(e) {
|
|
- e.preventDefault();
|
|
|
|
if (!e.altKey && !e.shiftKey && !e.repeat) {
|
|
if (!e.altKey && !e.shiftKey && !e.repeat) {
|
|
// 左右键切换分页
|
|
// 左右键切换分页
|
|
if (e.code === "ArrowLeft") {
|
|
if (e.code === "ArrowLeft") {
|
|
|
|
+ e.preventDefault();
|
|
if (e.ctrlKey) {
|
|
if (e.ctrlKey) {
|
|
this.toFirstPage();
|
|
this.toFirstPage();
|
|
} else {
|
|
} else {
|
|
@@ -383,6 +383,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
if (e.code === "ArrowRight") {
|
|
if (e.code === "ArrowRight") {
|
|
|
|
+ e.preventDefault();
|
|
if (e.ctrlKey) {
|
|
if (e.ctrlKey) {
|
|
this.toLastPage();
|
|
this.toLastPage();
|
|
} else {
|
|
} else {
|