-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Describe the bug
Even when the editor option 'useCommandShortcut' is set to false, clicking outside of the editor and pressing Ctrl+Z will undo the last step. Redo is working as expected (pressing Ctrl+Shift+Z outside of the editor does nothing).
To Reproduce
Steps to reproduce the behavior:
- Go to the examples site of the TUI-Editor and open example 3: https://nhn.github.io/tui.editor/latest/tutorial-example03-editor-with-wysiwyg-mode
- Click into the editor and type something
- Click outside of the editor (into the empty area below) . Editor loses focus.
- Editor does an undo-step.
It is important to note that the issues does not always happen (for me it happens all the time but a colleague is having the issue randomly), so it might be necessary to repeat the steps 2-4. I tried to find out if there is a certain condition for when it always happens but could not figure it out yet.
Expected behavior
Pressing Ctrl+Z does nothing when the editor is not focused (just like Ctrl+Shift+Z)
Screenshots
None
Desktop (please complete the following information):
- OS: KDE neon 6.2
- Browser: Firefox
- Version: 132.0 (64-bit)
Smartphone (please complete the following information):
- Not tested
Additional context
I saw that there is another issues open about the Ctrl+Z feature (#3266). The reason for this bug might be related to it.