Hi,
How can I pass modifier_keys from a ListInputHandler to the command that uses the ListInputHandler?
Here is my structure:
-
I have a
ListInputHandlersubclass calledJobInputHandler. The class receives aneventdict for thevalidateandconfirmmethod (want_eventmethod returnsTrue. In thevalidateandconfirmmethod, I can check whether any modifier keys where pressed when the user selected an item in the list. -
I have a
WindowCommandcalledTestCommandthat returnsJobInputHandlerfrom theinput()method. So the user will be prompted for an input before the command is run.
My question: In the run() method of TestCommand, I would like to know whether the item in JobInputHandler was selected with a modifier keys. What is the best way to pass the modifier keys from the ListInputHandler to the WindowCommand that uses the ListInputHandler as input?
Thanks!