CtrlClickMessage class, will use later.
This commit is contained in:
parent
3c8f12243c
commit
1e612fb2a0
|
@ -49,3 +49,23 @@ class ModalNotOkClose(Reset):
|
|||
return False
|
||||
|
||||
|
||||
# Special message to handle ctrl+click and click
|
||||
# overwrite update_model_noctrl and/or update_model_ctrl
|
||||
class CtrlClickMessage(ClickMessage):
|
||||
def on_event(self, event):
|
||||
super().on_event(event)
|
||||
self.ctrl = event.ctrlKey
|
||||
|
||||
def update_model(self, model):
|
||||
if self.ctrl:
|
||||
self.update_model_ctrl(model)
|
||||
else:
|
||||
self.update_model_noctrl(model)
|
||||
|
||||
def update_model_ctrl(self, model):
|
||||
pass
|
||||
|
||||
def update_model_noctrl(self, model):
|
||||
pass
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user