Fix printing of F12 key

This commit is contained in:
Maxime Coste 2019-09-08 22:54:02 +10:00
parent 9d897a6092
commit 46581f1c65

View File

@ -175,7 +175,7 @@ String key_to_str(Key key)
named = true;
res = it->name;
}
else if (key.key >= Key::F1 and key.key < Key::F12)
else if (key.key >= Key::F1 and key.key <= Key::F12)
{
named = true;
res = "F" + to_string((int)(key.key - Key::F1 + 1));