CtrlClickMessage class, will use later.
This commit is contained in:
parent
3c8f12243c
commit
1e612fb2a0
|
@ -48,4 +48,24 @@ class ModalNotOkClose(Reset):
|
|||
def data_change(self):
|
||||
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