From 01f21bdcc2c4aac43aaa35150e4437d7974c8a5b Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Sun, 29 Jan 2023 20:20:40 -0800 Subject: [PATCH] Don't do the DEL/Backspace swap for PETSCII terminals This was a bug if the user had set their terminal to swap Delete and Backspace keys while not using a PETSCII terminal. --- src/sbbs3/inkey.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sbbs3/inkey.cpp b/src/sbbs3/inkey.cpp index 4073a5bfc5..35c26050e6 100644 --- a/src/sbbs3/inkey.cpp +++ b/src/sbbs3/inkey.cpp @@ -63,8 +63,7 @@ int kbincom(sbbs_t* sbbs, unsigned long timeout) if(IS_ALPHA(ch)) ch ^= 0x20; /* Swap upper/lower case */ } - - if(term&SWAP_DELETE) { + else if(term&SWAP_DELETE) { switch(ch) { case TERM_KEY_DELETE: ch = '\b'; -- GitLab