try fix key repeat of ctrl

This commit is contained in:
Chrys 2021-05-27 01:10:01 +02:00
parent 231b03ff5c
commit 4955a3d846

View File

@ -177,7 +177,7 @@ class fenrirManager():
else:
if not self.environment['runtime']['inputManager'].noKeyPressed():
if self.singleKeyCommand:
self.singleKeyCommand = len( self.environment['runtime']['inputManager'].getLastDeepestInput() ) == 1
self.singleKeyCommand = len(self.environment['input']['currInput'])== 1
# key is already released. we need the old one
if not( self.singleKeyCommand and self.environment['runtime']['inputManager'].noKeyPressed()):
shortcut = self.environment['runtime']['inputManager'].getCurrShortcut()