Hi,
How can I pass modifier_keys
from a ListInputHandler to the command that uses the ListInputHandler
?
Here is my structure:
-
I have a
ListInputHandler
subclass calledJobInputHandler
. The class receives anevent
dict for thevalidate
andconfirm
method (want_event
method returnsTrue
. In thevalidate
andconfirm
method, I can check whether any modifier keys where pressed when the user selected an item in the list. -
I have a
WindowCommand
calledTestCommand
that returnsJobInputHandler
from 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!