aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authordam <dam@gudinoff>2024-04-19 12:36:18 +0100
committerdam <dam@gudinoff>2024-04-19 12:36:18 +0100
commit1f2afe4db186342bda551e96bcd1d9b029d7c5ba (patch)
tree904e2911bbf3d0a1a5b563936367ef0eef8f40da /modules
parentb8d743d5b307e0c230ebdb2fe314e041483d6a14 (diff)
downloadtask-time-tracker-1f2afe4db186342bda551e96bcd1d9b029d7c5ba.tar.zst
task-time-tracker-1f2afe4db186342bda551e96bcd1d9b029d7c5ba.zip
Avoid multiple initializations of key_map.
Diffstat (limited to 'modules')
-rw-r--r--modules/TUI/key_map.jai3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/TUI/key_map.jai b/modules/TUI/key_map.jai
index b272253..7a074b2 100644
--- a/modules/TUI/key_map.jai
+++ b/modules/TUI/key_map.jai
@@ -3,6 +3,9 @@
key_map: Table(string, Key);
setup_key_map :: () {
+
+ if key_map.count > 0 then return;
+
/*
This table was created/tested using the following terminals:
- g: gnome (terminal)