mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 06:18:12 +08:00
Block the undo shortcut while dragging with a tool (#1675)
Add NOOP message and bind it to CTRL + Z + LMB
This commit is contained in:
@@ -48,6 +48,8 @@ pub fn default_mapping() -> Mapping {
|
||||
// NORMAL PRIORITY
|
||||
// ===============
|
||||
//
|
||||
// Hack to prevent LMB + CTRL (OPTION) + Z combo (this effectively blocks you from making a double undo with AbortTransaction)
|
||||
entry!(KeyDown(KeyZ); modifiers=[Accel, Lmb], action_dispatch=DocumentMessage::Noop),
|
||||
// NodeGraphMessage
|
||||
entry!(KeyDown(Delete); modifiers=[Accel], action_dispatch=NodeGraphMessage::DeleteSelectedNodes { reconnect: false }),
|
||||
entry!(KeyDown(Backspace); modifiers=[Accel], action_dispatch=NodeGraphMessage::DeleteSelectedNodes { reconnect: false }),
|
||||
|
||||
Reference in New Issue
Block a user