Skip to content

Commit 617dc01

Browse files
committed
#707 AltGR fix in the Code Editor
1 parent e151bab commit 617dc01

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/code.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ static void processKeyboard(Code* code)
891891
{
892892
tic_mem* tic = code->tic;
893893

894-
if(tic->ram.input.keyboard.data == 0) return;
894+
if(tic->ram.input.keyboard.data == 0 || tic->ram.input.keyboard.text != 0) return;
895895

896896
switch(getClipboardEvent(0))
897897
{
@@ -1044,7 +1044,6 @@ static void textEditTick(Code* code)
10441044

10451045
processKeyboard(code);
10461046

1047-
if(!tic->api.key(tic, tic_key_ctrl) && !tic->api.key(tic, tic_key_alt))
10481047
{
10491048
char sym = tic->ram.input.keyboard.text;
10501049

@@ -1268,7 +1267,7 @@ static void drawOutlineBar(Code* code, s32 x, s32 y)
12681267
static void textOutlineTick(Code* code)
12691268
{
12701269
tic_mem* tic = code->tic;
1271-
1270+
12721271
if(keyWasPressed(tic_key_up))
12731272
{
12741273
if(code->outline.index > 0)

0 commit comments

Comments
 (0)