static void InitializeCommandShortcuts(ListView listView) { listView.AddCommandBinding(ApplicationCommands.Copy, new CallStackCtxMenuCommandProxy(new CopyCallStackCtxMenuCommand())); listView.AddCommandBinding(new CallStackCtxMenuCommandProxy(new RunToCursorCallStackCtxMenuCommand()), ModifierKeys.Control, Key.F10); listView.InputBindings.Add(new KeyBinding(new CallStackCtxMenuCommandProxy(new GoToSourceCallStackCtxMenuCommand()), Key.Enter, ModifierKeys.None)); listView.InputBindings.Add(new KeyBinding(new CallStackCtxMenuCommandProxy(new GoToSourceNewTabCallStackCtxMenuCommand()), Key.Enter, ModifierKeys.Control)); listView.InputBindings.Add(new KeyBinding(new CallStackCtxMenuCommandProxy(new GoToSourceNewTabCallStackCtxMenuCommand()), Key.Enter, ModifierKeys.Shift)); }
static void InitializeCommandShortcuts(ListView listView) { listView.AddCommandBinding(ApplicationCommands.Copy, new BreakpointCtxMenuCommandProxy(new CopyBreakpointCtxMenuCommand())); listView.AddCommandBinding(ApplicationCommands.Delete, new BreakpointCtxMenuCommandProxy(new DeleteBreakpointCtxMenuCommand())); listView.InputBindings.Add(new KeyBinding(new BreakpointCtxMenuCommandProxy(new GoToSourceBreakpointCtxMenuCommand()), Key.Enter, ModifierKeys.None)); listView.InputBindings.Add(new KeyBinding(new BreakpointCtxMenuCommandProxy(new GoToSourceNewTabBreakpointCtxMenuCommand()), Key.Enter, ModifierKeys.Control)); listView.InputBindings.Add(new KeyBinding(new BreakpointCtxMenuCommandProxy(new GoToSourceNewTabBreakpointCtxMenuCommand()), Key.Enter, ModifierKeys.Shift)); listView.InputBindings.Add(new KeyBinding(new BreakpointCtxMenuCommandProxy(new ToggleEnableBreakpointCtxMenuCommand()), Key.Space, ModifierKeys.None)); }
static void InitializeCommandShortcuts(ListView listView) { listView.AddCommandBinding(ApplicationCommands.Copy, new ThreadsCtxMenuCommandProxy(new CopyCallThreadsCtxMenuCommand())); listView.InputBindings.Add(new KeyBinding(new ThreadsCtxMenuCommandProxy(new SwitchToThreadThreadsCtxMenuCommand()), Key.Enter, ModifierKeys.None)); listView.InputBindings.Add(new KeyBinding(new ThreadsCtxMenuCommandProxy(new SwitchToThreadNewTabThreadsCtxMenuCommand()), Key.Enter, ModifierKeys.Control)); listView.InputBindings.Add(new KeyBinding(new ThreadsCtxMenuCommandProxy(new SwitchToThreadNewTabThreadsCtxMenuCommand()), Key.Enter, ModifierKeys.Shift)); }
static void InitializeCommandShortcuts(ListView listView) { listView.AddCommandBinding(ApplicationCommands.Copy, new ModulesCtxMenuCommandProxy(new CopyCallModulesCtxMenuCommand())); listView.InputBindings.Add(new KeyBinding(new ModulesCtxMenuCommandProxy(new GoToModuleModulesCtxMenuCommand()), Key.Enter, ModifierKeys.None)); listView.InputBindings.Add(new KeyBinding(new ModulesCtxMenuCommandProxy(new GoToModuleNewTabModulesCtxMenuCommand()), Key.Enter, ModifierKeys.Control)); listView.InputBindings.Add(new KeyBinding(new ModulesCtxMenuCommandProxy(new GoToModuleNewTabModulesCtxMenuCommand()), Key.Enter, ModifierKeys.Shift)); }
static void InitializeCommandShortcuts(ListView listView) { listView.AddCommandBinding(ApplicationCommands.Copy, new LocalsCtxMenuCommandProxy(new CopyLocalsCtxMenuCommand())); listView.InputBindings.Add(new KeyBinding(new LocalsCtxMenuCommandProxy(new EditValueLocalsCtxMenuCommand()), Key.F2, ModifierKeys.None)); listView.InputBindings.Add(new KeyBinding(new LocalsCtxMenuCommandProxy(new CopyValueLocalsCtxMenuCommand()), Key.C, ModifierKeys.Control | ModifierKeys.Shift)); listView.InputBindings.Add(new KeyBinding(new LocalsCtxMenuCommandProxy(new ToggleCollapsedLocalsCtxMenuCommand()), Key.Enter, ModifierKeys.None)); }
static void InitializeCommandShortcuts(ListView listView) { listView.AddCommandBinding(ApplicationCommands.Copy, new ModulesCtxMenuCommandProxy(new CopyCallModulesCtxMenuCommand())); listView.InputBindings.Add(new KeyBinding(new ModulesCtxMenuCommandProxy(new GoToModuleModulesCtxMenuCommand()), Key.Enter, ModifierKeys.None)); listView.InputBindings.Add(new KeyBinding(new ModulesCtxMenuCommandProxy(new GoToModuleNewTabModulesCtxMenuCommand()), Key.Enter, ModifierKeys.Control)); listView.InputBindings.Add(new KeyBinding(new ModulesCtxMenuCommandProxy(new GoToModuleNewTabModulesCtxMenuCommand()), Key.Enter, ModifierKeys.Shift)); listView.InputBindings.Add(new KeyBinding(new ModulesCtxMenuCommandProxy(new ShowInMemoryModulesCtxMenuCommand()), Key.X, ModifierKeys.Control)); for (int i = 0; i < Memory.MemoryControlCreator.NUMBER_OF_MEMORY_WINDOWS && i < 10; i++) { listView.InputBindings.Add(new KeyBinding(new ModulesCtxMenuCommandProxy(new ShowInMemoryWindowModulesCtxMenuCommand(i + 1)), Key.D0 + (i + 1) % 10, ModifierKeys.Control)); } }
static void InitializeCommandShortcuts(ListView listView) { listView.AddCommandBinding(ApplicationCommands.Copy, new LocalsCtxMenuCommandProxy(new CopyLocalsCtxMenuCommand())); listView.InputBindings.Add(new KeyBinding(new LocalsCtxMenuCommandProxy(new EditValueLocalsCtxMenuCommand()), Key.F2, ModifierKeys.None)); listView.InputBindings.Add(new KeyBinding(new LocalsCtxMenuCommandProxy(new CopyValueLocalsCtxMenuCommand()), Key.C, ModifierKeys.Control | ModifierKeys.Shift)); listView.InputBindings.Add(new KeyBinding(new LocalsCtxMenuCommandProxy(new ToggleCollapsedLocalsCtxMenuCommand()), Key.Enter, ModifierKeys.None)); listView.InputBindings.Add(new KeyBinding(new LocalsCtxMenuCommandProxy(new ShowInMemoryLocalsCtxMenuCommand()), Key.X, ModifierKeys.Control)); for (int i = 0; i < Memory.MemoryControlCreator.NUMBER_OF_MEMORY_WINDOWS && i < 10; i++) { listView.InputBindings.Add(new KeyBinding(new LocalsCtxMenuCommandProxy(new ShowInMemoryWindowLocalsCtxMenuCommand(i + 1)), Key.D0 + (i + 1) % 10, ModifierKeys.Control)); } }