Skip to content

Commit

Permalink
change key
Browse files Browse the repository at this point in the history
  • Loading branch information
yetao committed Feb 28, 2022
1 parent ac023c9 commit 8fb2dbe
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/.idea
/.vscode
.*
Assets
__pycache__
/dist
Expand Down
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@
- 在其他节点中输入该`id`, 通过`Ctrl+M`将其变为超链接
- 变为超链接后, 您可以自由修改其`id`字符串, 存储的跳转信息不会因为其字符串改变而改变了

## 3. 基本设置
## 3. 场景小部件的批量坐标移动
`shift + w/a/s/d/j/k/l`

## 4. 基本设置
- 扩大场景(左右上下): `alt + 1/2/3/4`
- 缩小场景(左右上下): `alt + 5/6/7/8`
- 打开辅助线功能(默认开启): `F1`
Expand Down Expand Up @@ -216,8 +219,12 @@
5. 我会根据实际情况进行合并分支


# v2.36.21:
# 版本更替

## 后续规划
代码重构, 增加双链, 除了网格布局新增其他布局样式, 绘图功能强化.

## v2.36.21:
- [x] 侧边栏画板
- [x] 对齐功能
- [x] 动画演示变成树的遍历
Expand All @@ -227,4 +234,8 @@
- [x] effect cutline 计算boundingRect()
- [x] 修复搜索的错误
- [x] 修复还没建立线条就删除的错误
- [x] 修复了错误的majax解析闪退
- [x] 修复了错误的majax解析闪退

## v2.37.22:
- [x] 修复了bug
- [x] 增加了场景内的根据当前鼠标坐标批量移动小部件的功能
16 changes: 8 additions & 8 deletions src/NodeNotePackage/NodeNote/GraphicsView/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -1756,28 +1756,28 @@ def keyPressEvent(self, event) -> None:
if event.key() == QtCore.Qt.Key_Down and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
self.align("down")
return
if event.key() == QtCore.Qt.Key_1 and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
if event.key() == QtCore.Qt.Key_A and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
self.tanslation_expand("left")
return
if event.key() == QtCore.Qt.Key_2 and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
if event.key() == QtCore.Qt.Key_D and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
self.tanslation_expand("right")
return
if event.key() == QtCore.Qt.Key_3 and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
if event.key() == QtCore.Qt.Key_W and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
self.tanslation_expand("up")
return
if event.key() == QtCore.Qt.Key_4 and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
if event.key() == QtCore.Qt.Key_S and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
self.tanslation_expand("down")
return
if event.key() == QtCore.Qt.Key_5 and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
if event.key() == QtCore.Qt.Key_J and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
self.tanslation_narrow("left")
return
if event.key() == QtCore.Qt.Key_6 and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
if event.key() == QtCore.Qt.Key_L and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
self.tanslation_narrow("right")
return
if event.key() == QtCore.Qt.Key_7 and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
if event.key() == QtCore.Qt.Key_I and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
self.tanslation_narrow("up")
return
if event.key() == QtCore.Qt.Key_8 and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
if event.key() == QtCore.Qt.Key_K and int(event.modifiers()) & QtCore.Qt.ShiftModifier:
self.tanslation_narrow("down")
return

Expand Down

0 comments on commit 8fb2dbe

Please sign in to comment.