aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
commitcdf8ae4931db1ecdbc5cab632ae8afb430a3a24b (patch)
treec4a25899c22a26559ced9ec308b62efaa7e2d2da
parentd53a4216c3219dc94cd45789142a2f28b5e0e1f7 (diff)
Scroll to top now with 'Q' key.
[#24] I want to free up capital 'S' in order to implement fast vertical scroll on Process and World pages.
-rw-r--r--bin/README.md2
-rw-r--r--bin/handler.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/README.md b/bin/README.md
index 97738f1..ec6ff17 100644
--- a/bin/README.md
+++ b/bin/README.md
@@ -19,7 +19,7 @@ $ ./bin/salis.py load --file 16.sim
|Left/Right arrow |Previous/next page |
|Up/Down arrows |Scroll page up/down if it can't fit terminal |
|`wasd` |Scroll/pan (PROCESS and WORLD page) |
-|`S` |Scroll to top (PROCESS and WORLD page) |
+|`Q` |Scroll to top (PROCESS and WORLD page) |
|`A` |Scroll to left (PROCESS page) |
|`zx` |Zoom in/out (WORLD page) |
|`i` |Toggle IP view (WORLD page) |
diff --git a/bin/handler.py b/bin/handler.py
index da95789..c5e6ad0 100644
--- a/bin/handler.py
+++ b/bin/handler.py
@@ -69,7 +69,7 @@ class Handler:
elif cmd == ord("w"):
self.__printer.world.pan_up()
self.__printer.proc_scroll_up()
- elif cmd == ord("S"):
+ elif cmd == ord("Q"):
self.__printer.world.pan_reset()
self.__printer.proc_scroll_vertical_reset()
elif cmd == ord("A"):