From 7fbedc1f0d7e58fbbce3bdb469f81e9b7c411c15 Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 19 Oct 2022 11:30:34 +0200 Subject: Fix Meta+Control keybindings --- src/config/config.nim | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/config') diff --git a/src/config/config.nim b/src/config/config.nim index 56f13382..29d862fd 100644 --- a/src/config/config.nim +++ b/src/config/config.nim @@ -71,18 +71,19 @@ func getRealKey(key: string): string = elif meta == 1: realk &= 'M' & c meta = 0 - elif meta == 2: - realk &= '\e' - realk &= c - meta = 0 elif control == 1: realk &= 'C' & c control = 0 - elif control == 2: - realk &= getControlChar(c) - control = 0 else: - realk &= c + if meta == 2: + realk &= '\e' + realk &= c + meta = 0 + if control == 2: + realk &= getControlChar(c) + control = 0 + else + realk &= c if control == 1: realk &= 'C' if meta == 1: -- cgit 1.4.1-2-gfad0