diff --git a/source/src/console.cpp b/source/src/console.cpp index 271c4128..625bbf3d 100644 --- a/source/src/console.cpp +++ b/source/src/console.cpp @@ -556,6 +556,11 @@ void keypress(int code, bool isdown, int cooked, SDLMod mod) defformatstring(kpi)("KEYPRESS %d", code); execute(kpi); } + if (!isdown && identexists("KEYRELEASE")) + { + defformatstring(kpo)("KEYRELEASE %d", code); + execute(kpo); + } } char *getcurcommand()