ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Cannot set some keystrokes that would be useful for adding shortcuts to indent/dedent

Open floer32 opened this issue 3 years ago • 3 comments

📝 Provide detailed reproduction steps (if any)

  1. Try setting keystroke actions for any of: Ctrl+., Ctrl+Shift+., Ctrl+], Ctrl.,, Ctrl+Shift+,, or Ctrl+[ (using editor.keystrokes.set, for example editor.keystrokes.set('Ctrl+]', (data, cancel) => someFunction)
  2. They don't seem to get triggered

✔️ Expected result

I expect to be able to bind to those keyboard shortcuts.

❌ Actual result

Nothing happens.

❓ Possible solution

Maybe there's a different way to add keystrokes than editor.keystrokes?

📃 Other details

  • Browser: Chrome 100.0.4896.75 (Official Build) (x86_64)
  • OS: Mac
  • Installed CKEditor version: ^31.0.0

floer32 avatar Apr 14 '22 21:04 floer32

I'm having the same issue adding a keystroke for Ctrl+. but it only seems to be an issue on Chrome and only using the period character in the general typing area of the keyboard. Not the period on the number pad.

I believe this may be an issue of how the characters get mapped into key codes in ckeditor5/packages/ckeditor5-utils/src/keyboard.js. The key code for Delete (46) matches with the Period key code.

THume avatar May 12 '22 15:05 THume

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Sep 30 '23 05:09 CKEditorBot

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Oct 19 '24 23:10 CKEditorBot

We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

CKEditorBot avatar Nov 19 '24 23:11 CKEditorBot