hookehuyr

fix

<!--
* @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
......