0

I have set up my application so that when I press Ctrl+Z, my UndoManager will undo the last entry. However, for some reason, Ctrl+H will also do this, and I have no idea why.

Here is my source code.

camickr
  • 321,443
  • 19
  • 166
  • 288
Cg2916
  • 1,117
  • 6
  • 23
  • 36

1 Answers1

1

when I press Ctrl+Z, my UndoManager will undo the last entry. However, for some reason, Ctrl+H will also do this,

Ctrl+H is not invoking your UndoManager.

Ctrl+H, is a Key Binding to delete the previous character in a text component.

This is easy to test. Just type some text into the text component. Then set the caret to a different position in the text component. The character deleted will be the character at the current caret position, not the last character typed into the text component.

You can check out Key Bindings for a program that displays all the default Key Bindings for a given component.

camickr
  • 321,443
  • 19
  • 166
  • 288