diff options
| author | dam <dam@gudinoff> | 2024-04-19 12:36:18 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2024-04-19 12:36:18 +0100 |
| commit | 1f2afe4db186342bda551e96bcd1d9b029d7c5ba (patch) | |
| tree | 904e2911bbf3d0a1a5b563936367ef0eef8f40da | |
| parent | b8d743d5b307e0c230ebdb2fe314e041483d6a14 (diff) | |
| download | task-time-tracker-1f2afe4db186342bda551e96bcd1d9b029d7c5ba.tar.zst task-time-tracker-1f2afe4db186342bda551e96bcd1d9b029d7c5ba.zip | |
Avoid multiple initializations of key_map.
| -rw-r--r-- | modules/TUI/key_map.jai | 3 |
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) |
