Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
map-demo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-02-08 14:32:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
209f130de002ce344d81beed8af0fc05cd9c2f1c
209f130d
1 parent
77b88791
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
src/views/mapCutter.vue
src/views/mapCutter.vue
View file @
209f130
<!--
* @Date: 2025-01-22 11:40:12
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-02-08 14:
27:04
* @LastEditTime: 2025-02-08 14:
32:23
* @FilePath: /map-demo/src/views/mapCutter.vue
* @Description: 文件描述
-->
...
...
@@ -148,6 +148,7 @@ const triggerFileInput = () => {
};
const handleKeydown = (e) => { // 键盘控制
console.log(`按键: ${e.key}, Shift 是否按下: ${e.shiftKey}`) // 调试信息
if (e.shiftKey && e.key === '=') {
// 一些键盘可能需要 Shift 才能输入 `+`,但 `e.key` 实际上是 `=`
scaleImage(1.01)
...
...
@@ -165,6 +166,9 @@ const handleKeydown = (e) => { // 键盘控制
case 'ArrowRight':
moveImage('right')
break
case '+':
scaleImage(1.01)
break
case '-':
scaleImage(0.99)
break
...
...
Please
register
or
login
to post a comment