|
@@ -58,14 +58,11 @@ namespace PixiEditor.ViewModels.SubViewModels.Main
|
|
|
|
|
|
private void ProcessShortcutDown(bool isRepeat, Key key)
|
|
private void ProcessShortcutDown(bool isRepeat, Key key)
|
|
{
|
|
{
|
|
- var controller = Owner.ShortcutController;
|
|
|
|
- if (!restoreToolOnKeyUp &&
|
|
|
|
- (controller.LastShortcut == null || controller.LastShortcut.Command == Owner.ToolsSubViewModel.SelectToolCommand)
|
|
|
|
- )
|
|
|
|
|
|
+ if (isRepeat && !restoreToolOnKeyUp && Owner.ShortcutController.LastShortcut != null &&
|
|
|
|
+ Owner.ShortcutController.LastShortcut.Command == Owner.ToolsSubViewModel.SelectToolCommand)
|
|
{
|
|
{
|
|
restoreToolOnKeyUp = true;
|
|
restoreToolOnKeyUp = true;
|
|
- if(isRepeat)
|
|
|
|
- ShortcutController.BlockShortcutExecution = true;
|
|
|
|
|
|
+ ShortcutController.BlockShortcutExecution = true;
|
|
}
|
|
}
|
|
|
|
|
|
Owner.ShortcutController.KeyPressed(key, Keyboard.Modifiers);
|
|
Owner.ShortcutController.KeyPressed(key, Keyboard.Modifiers);
|