aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordam <devnull@localhost>2024-02-20 17:53:15 +0000
committerdam <devnull@localhost>2024-02-20 17:53:15 +0000
commit039a248c8d1058c50054008495c77798a358f3d0 (patch)
treeb0d946c31abe6e71191174c01b392edde9b8d38f
parentcbb4b1f06b2395705851430742e23240ece90510 (diff)
downloadtask-time-tracker-039a248c8d1058c50054008495c77798a358f3d0.tar.zst
task-time-tracker-039a248c8d1058c50054008495c77798a358f3d0.zip
Fixed code of some function keys (and modifier combos).
-rw-r--r--TUI/module.jai64
1 files changed, 32 insertions, 32 deletions
diff --git a/TUI/module.jai b/TUI/module.jai
index 9c90805..2813c17 100644
--- a/TUI/module.jai
+++ b/TUI/module.jai
@@ -238,10 +238,10 @@ Keys :: struct #type_info_none {
F11 : Key : #run to_key("\e[23~");
F12 : Key : #run to_key("\e[24~");
- MetaF1 : Key : #run to_key("\eO1P");
- MetaF2 : Key : #run to_key("\eO1Q");
- MetaF3 : Key : #run to_key("\eO1R");
- MetaF4 : Key : #run to_key("\eO1S");
+ MetaF1 : Key : #run to_key("\e[1;1P");
+ MetaF2 : Key : #run to_key("\e[1;1Q");
+ MetaF3 : Key : #run to_key("\e[1;1R");
+ MetaF4 : Key : #run to_key("\e[1;1S");
MetaF5 : Key : #run to_key("\e[15;1~");
MetaF6 : Key : #run to_key("\e[17;1~");
MetaF7 : Key : #run to_key("\e[18;1~");
@@ -251,10 +251,10 @@ Keys :: struct #type_info_none {
MetaF11 : Key : #run to_key("\e[23;1~");
MetaF12 : Key : #run to_key("\e[24;1~");
- ShiftF1 : Key : #run to_key("\eO2P");
- ShiftF2 : Key : #run to_key("\eO2Q");
- ShiftF3 : Key : #run to_key("\eO2R");
- ShiftF4 : Key : #run to_key("\eO2S");
+ ShiftF1 : Key : #run to_key("\e[1;2P");
+ ShiftF2 : Key : #run to_key("\e[1;2Q");
+ ShiftF3 : Key : #run to_key("\e[1;2R");
+ ShiftF4 : Key : #run to_key("\e[1;2S");
ShiftF5 : Key : #run to_key("\e[15;2~");
ShiftF6 : Key : #run to_key("\e[17;2~");
ShiftF7 : Key : #run to_key("\e[18;2~");
@@ -264,10 +264,10 @@ Keys :: struct #type_info_none {
ShiftF11 : Key : #run to_key("\e[23;2~");
ShiftF12 : Key : #run to_key("\e[24;2~");
- AltF1 : Key : #run to_key("\eO3P");
- AltF2 : Key : #run to_key("\eO3Q");
- AltF3 : Key : #run to_key("\eO3R");
- AltF4 : Key : #run to_key("\eO3S");
+ AltF1 : Key : #run to_key("\e[1;3P");
+ AltF2 : Key : #run to_key("\e[1;3Q");
+ AltF3 : Key : #run to_key("\e[1;3R");
+ AltF4 : Key : #run to_key("\e[1;3S");
AltF5 : Key : #run to_key("\e[15;3~");
AltF6 : Key : #run to_key("\e[17;3~");
AltF7 : Key : #run to_key("\e[18;3~");
@@ -277,10 +277,10 @@ Keys :: struct #type_info_none {
AltF11 : Key : #run to_key("\e[23;3~");
AltF12 : Key : #run to_key("\e[24;3~");
- AltShiftF1 : Key : #run to_key("\eO4P");
- AltShiftF2 : Key : #run to_key("\eO4Q");
- AltShiftF3 : Key : #run to_key("\eO4R");
- AltShiftF4 : Key : #run to_key("\eO4S");
+ AltShiftF1 : Key : #run to_key("\e[1;4P");
+ AltShiftF2 : Key : #run to_key("\e[1;4Q");
+ AltShiftF3 : Key : #run to_key("\e[1;4R");
+ AltShiftF4 : Key : #run to_key("\e[1;4S");
AltShiftF5 : Key : #run to_key("\e[15;4~");
AltShiftF6 : Key : #run to_key("\e[17;4~");
AltShiftF7 : Key : #run to_key("\e[18;4~");
@@ -290,10 +290,10 @@ Keys :: struct #type_info_none {
AltShiftF11 : Key : #run to_key("\e[23;4~");
AltShiftF12 : Key : #run to_key("\e[24;4~");
- CtrlF1 : Key : #run to_key("\eO5P");
- CtrlF2 : Key : #run to_key("\eO5Q");
- CtrlF3 : Key : #run to_key("\eO5R");
- CtrlF4 : Key : #run to_key("\eO5S");
+ CtrlF1 : Key : #run to_key("\e[1;5P");
+ CtrlF2 : Key : #run to_key("\e[1;5Q");
+ CtrlF3 : Key : #run to_key("\e[1;5R");
+ CtrlF4 : Key : #run to_key("\e[1;5S");
CtrlF5 : Key : #run to_key("\e[15;5~");
CtrlF6 : Key : #run to_key("\e[17;5~");
CtrlF7 : Key : #run to_key("\e[18;5~");
@@ -303,10 +303,10 @@ Keys :: struct #type_info_none {
CtrlF11 : Key : #run to_key("\e[23;5~");
CtrlF12 : Key : #run to_key("\e[24;5~");
- CtrlShiftF1 : Key : #run to_key("\eO6P");
- CtrlShiftF2 : Key : #run to_key("\eO6Q");
- CtrlShiftF3 : Key : #run to_key("\eO6R");
- CtrlShiftF4 : Key : #run to_key("\eO6S");
+ CtrlShiftF1 : Key : #run to_key("\e[1;6P");
+ CtrlShiftF2 : Key : #run to_key("\e[1;6Q");
+ CtrlShiftF3 : Key : #run to_key("\e[1;6R");
+ CtrlShiftF4 : Key : #run to_key("\e[1;6S");
CtrlShiftF5 : Key : #run to_key("\e[15;6~");
CtrlShiftF6 : Key : #run to_key("\e[17;6~");
CtrlShiftF7 : Key : #run to_key("\e[18;6~");
@@ -316,10 +316,10 @@ Keys :: struct #type_info_none {
CtrlShiftF11 : Key : #run to_key("\e[23;6~");
CtrlShiftF12 : Key : #run to_key("\e[24;6~");
- CtrlAltF1 : Key : #run to_key("\eO7P");
- CtrlAltF2 : Key : #run to_key("\eO7Q");
- CtrlAltF3 : Key : #run to_key("\eO7R");
- CtrlAltF4 : Key : #run to_key("\eO7S");
+ CtrlAltF1 : Key : #run to_key("\e[1;7P");
+ CtrlAltF2 : Key : #run to_key("\e[1;7Q");
+ CtrlAltF3 : Key : #run to_key("\e[1;7R");
+ CtrlAltF4 : Key : #run to_key("\e[1;7S");
CtrlAltF5 : Key : #run to_key("\e[15;7~");
CtrlAltF6 : Key : #run to_key("\e[17;7~");
CtrlAltF7 : Key : #run to_key("\e[18;7~");
@@ -329,10 +329,10 @@ Keys :: struct #type_info_none {
CtrlAltF11 : Key : #run to_key("\e[23;7~");
CtrlAltF12 : Key : #run to_key("\e[24;7~");
- CtrlAltShiftF1 : Key : #run to_key("\eO8P");
- CtrlAltShiftF2 : Key : #run to_key("\eO8Q");
- CtrlAltShiftF3 : Key : #run to_key("\eO8R");
- CtrlAltShiftF4 : Key : #run to_key("\eO8S");
+ CtrlAltShiftF1 : Key : #run to_key("\e[1;8P");
+ CtrlAltShiftF2 : Key : #run to_key("\e[1;8Q");
+ CtrlAltShiftF3 : Key : #run to_key("\e[1;8R");
+ CtrlAltShiftF4 : Key : #run to_key("\e[1;8S");
CtrlAltShiftF5 : Key : #run to_key("\e[15;8~");
CtrlAltShiftF6 : Key : #run to_key("\e[17;8~");
CtrlAltShiftF7 : Key : #run to_key("\e[18;8~");