I am trying to change some parameters using the onKeyPress event with a text field using the enter key as the trigger to make the updates. This worked fine in v8.0.xx. After updating to 8.1.5, it appears that when enter is pressed it returns an empty string or at least that is what it looks like. Below are the if statements that I have attempted to return True for but have not been able to.
if event.key == 'Enter' or event.Key == 'enter':
if event.key == '':
if event.key == ' ':
Example outputs from the output console when simply printing event.key every time a key is pressed:
15:05:25.706 [Browser Thread: 64239] INFO Perspective.Designer.Workspace - a
15:05:26.390 [Browser Thread: 64239] INFO Perspective.Designer.Workspace - f
15:05:26.790 [Browser Thread: 64239] INFO Perspective.Designer.Workspace - d
15:05:27.178 [Browser Thread: 64239] INFO Perspective.Designer.Workspace - s
15:05:28.300 [Browser Thread: 64239] INFO Perspective.Designer.Workspace -
The last line is what is returned when Enter is pressed