From 617dc01479b4c29668751bd76edfb439b1c74efa Mon Sep 17 00:00:00 2001 From: Vadim Grigoruk Date: Sun, 26 Aug 2018 10:56:18 +0300 Subject: [PATCH] #707 AltGR fix in the Code Editor --- src/code.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/code.c b/src/code.c index 647f29c..75d968b 100644 --- a/src/code.c +++ b/src/code.c @@ -891,7 +891,7 @@ static void processKeyboard(Code* code) { tic_mem* tic = code->tic; - if(tic->ram.input.keyboard.data == 0) return; + if(tic->ram.input.keyboard.data == 0 || tic->ram.input.keyboard.text != 0) return; switch(getClipboardEvent(0)) { @@ -1044,7 +1044,6 @@ static void textEditTick(Code* code) processKeyboard(code); - if(!tic->api.key(tic, tic_key_ctrl) && !tic->api.key(tic, tic_key_alt)) { char sym = tic->ram.input.keyboard.text; @@ -1268,7 +1267,7 @@ static void drawOutlineBar(Code* code, s32 x, s32 y) static void textOutlineTick(Code* code) { tic_mem* tic = code->tic; - + if(keyWasPressed(tic_key_up)) { if(code->outline.index > 0)