From 2d1cff6549f7b08a85f2c333a094f231661e8e37 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 27 Oct 2022 12:50:59 +0200 Subject: [PATCH] display F4 key name correctly, and 'fake keys' not displayed --- dialogs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dialogs.cpp b/dialogs.cpp index 474c525a..36f51cec 100644 --- a/dialogs.cpp +++ b/dialogs.cpp @@ -172,6 +172,8 @@ EX namespace dialog { if(k == SDLK_F10) return "F10"; if(k == SDLK_F9) return "F9"; if(k == SDLK_F1) return "F1"; + if(k == SDLK_F4) return "F4"; + if(k >= 10000 && k < 10500) return ""; if(k == SDLK_HOME) return "Home"; if(k == SDLK_BACKSPACE) return "Backspace"; if(k == SDLK_RETURN) return "Enter";