Skip to content

Fix #43 Added alternate cut, copy, paste shortcuts #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

nippur72
Copy link
Contributor

@nippur72 nippur72 commented May 3, 2015

This pull request adds support for the following shortcuts that are missing ( #43 ):

  • CTRL+INS (copy)
  • SHIFT+DEL (cut)
  • SHIFT+INS (paste)

Note: since the Insert key was intercepted early for toggling Overstrike mode, I had to move it from OnPreviewKeyDown() and make it work as a normal editing command.

@nippur72
Copy link
Contributor Author

nippur72 commented May 3, 2015

I fixed what you suggested, thank you.

In creating key bindings, I used CreateFrozenKeyBinding(), I hope it's correct.

@dgrunwald
Copy link
Member

I just tried this; and it seems that Ctrl+Insert etc. already work without this patch! (but only if AllowToggleOverstrike=false)

Remember that there are default key gestures associated with ApplicationCommands.Copy (etc.).

AvalonEdit isn't explicitly registering Ctrl+C, so I don't see why it should register Ctrl+Insert.

I'll merge only the ToggleOverstrike bugfix.

dgrunwald added a commit that referenced this pull request Dec 13, 2015
….AllowToggleOverstrikeMode is enabled.

Based on @nippur72's fix in #44.
@dgrunwald dgrunwald closed this Dec 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants