summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/keys.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keys.cc b/src/keys.cc
index 4d6d5bc3..58292fd7 100644
--- a/src/keys.cc
+++ b/src/keys.cc
@@ -128,7 +128,7 @@ String key_to_str(Key key)
else if (key.key >= Key::F1 and key.key < Key::F12)
{
named = true;
- res = "F" + to_string((int)(Codepoint)key.key - (int)(Codepoint)Key::F1 + 1);
+ res = "F" + to_string((int)(key.key - Key::F1 + 1));
}
else
res = codepoint_to_str(key.key);