-
Notifications
You must be signed in to change notification settings - Fork 343
Open
Labels
issue: bug (minor)Bug affecting only some users or with no major impact on the frameworkBug affecting only some users or with no major impact on the framework
Description
Problem
Description
runSofa does not propagate correctly the key pressed & release event because of the weird use of the the CTRL combination.
Steps to reproduce
import Sofa
class Test(Sofa.Core.Controller):
def __init__(self, *args, **kwargs):
Sofa.Core.Controller.__init__(self,*args, **kwargs)
def onKeypressedEvent(self, event):
print("KEY PRESSED", event)
def onKeyreleasedEvent(self, event):
print("KEY RELEASED", event)
def createScene(root):
root.addObject(Test(name="Hello"))Start a simulation and keep pressing CTRL+A key. It will print!
KEY PRESSED: {...}
KEY RELEASED: {...}
... /// lot of repetition
KEY PRESSED: {...}
KEY RELEASED: {...}Expected behavior
It should print a single KEY PRESSED & KEY RELEASED.
Metadata
Metadata
Assignees
Labels
issue: bug (minor)Bug affecting only some users or with no major impact on the frameworkBug affecting only some users or with no major impact on the framework