From ae9adce873cbb4938a34657d783286fa14469c8a Mon Sep 17 00:00:00 2001
From: GoldenTails <milestailsprower101n2@gmail.com>
Date: Sun, 29 Dec 2019 18:26:56 -0600
Subject: [PATCH] Replace magic numbers with less magic and more readable
 chars.

---
 src/m_menu.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/m_menu.c b/src/m_menu.c
index fed0d65b11..e1e28b671a 100644
--- a/src/m_menu.c
+++ b/src/m_menu.c
@@ -10436,7 +10436,8 @@ static void M_HandleConnectIP(INT32 choice)
 
 			if ( ctrldown ) {
 				switch (choice) {
-					case 118: // ctrl+v, pasting
+					case 'v':
+					case 'V': // ctrl+v, pasting
 						;
 						char *paste = (char *)I_ClipboardPaste(); // Paste clipboard into char
 
@@ -10448,13 +10449,15 @@ static void M_HandleConnectIP(INT32 choice)
 								S_StartSound(NULL,sfx_menu1); // Tails
 						}
 						break;
-
-					case 99: // ctrl+c, copying
+						
+					case 'c':
+					case 'C': // ctrl+c, copying
 						I_ClipboardCopy(setupm_ip, l);
 						S_StartSound(NULL,sfx_menu1); // Tails
 						break;
 
-					case 120: // ctrl+x, cutting
+					case 'x':
+					case 'X': // ctrl+x, cutting
 						I_ClipboardCopy(setupm_ip, l);
 						S_StartSound(NULL,sfx_menu1); // Tails
 						setupm_ip[0] = 0;
-- 
GitLab