joplin icon indicating copy to clipboard operation
joplin copied to clipboard

Keyboard shortcut not working in WYSIWYG editor

Open globalhuman opened this issue 2 years ago • 6 comments

Some keyboard shortcuts for joplin do not work when in WYSIWYG mode. Of main interest is the action "Toggle Editor" going between markdown -> WYSIWYG and back from WYSIWYG -> markdown. The latter case does not work.

This is not listed as a limitation of the rich-text-editor as per https://joplinapp.org/rich_text_editor/ .

I would therefore describe this as a bug until otherwise documented or fixed.

A number of other requests exist for this functionality, or have noted this behaviour:

  • https://discourse.joplinapp.org/t/shortcut-for-toggle-markdown-editor-wysiwyg-editor/21148
  • https://discourse.joplinapp.org/t/keyboard-shortcut-for-switching-between-md-wysiwyg/22206/2
  • https://discourse.joplinapp.org/t/toggle-editors-by-keyboard/22999

The current workaround is to use the command pallet (CTRL+SHIFT+P) and select the "Toggle Editor" option.

Environment

Joplin version: 2.7.15 Platform: macOS OS specifics: 12.3.1

Steps to reproduce

  1. Open note in markdown editor mode
  2. Add keyboard shortcut to ~/.config/joplin-desktop/keymap-desktop.json
 {
    "command": "toggleEditors",
    "accelerator": "Ctrl+Cmd+T"
  }
  1. Use keyboard shortcut as specified for "Toggle Editor" when in markdown editor mode
  2. Observe change to WYSIWYG editor mode
  3. (FAIL) Use keyboard shortcut again to "toggle" back to markdown mode

Describe what you expected to happen

It is expected that the "Toggle Editor" action work in both directions markdown -> WYSIWYG and WYSIWYG -> markdown.

It is expected if there are key clashes where a shortcut defined in the markdown editor clashes with the WYSIWYG scope then this be highlighted.

Logfile

globalhuman avatar May 06 '22 04:05 globalhuman

Related conversation - https://github.com/laurent22/joplin/issues/6063

Daeraxa avatar May 06 '22 09:05 Daeraxa

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

github-actions[bot] avatar Jun 05 '22 16:06 github-actions[bot]

It's still not working. I tried to use Ctrl + Shift + T shortcut to Insert Date Time and when in WYSIWYG mode it doesn't do anything. As soon as I switch to markdown mode it starts working. My Joplin version:

Joplin 2.8.8 (prod, win32)

Client ID: e2267148534744c7844b2a47c32a31af
Sync Version: 3
Profile Version: 41
Keychain Supported: Yes

Revision: c2a6a13

virious avatar Jun 07 '22 17:06 virious

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

github-actions[bot] avatar Jul 09 '22 16:07 github-actions[bot]

This is still not working. Having looked a bit further into the docs I have discovered the following page which lists the keybinds between rich text editor and the markdown editor as an area requiring improvement.

https://joplinapp.org/gsoc2022/ideas/#6-improve-integration-of-the-richtext-wysiwyg-editor

globalhuman avatar Jul 10 '22 05:07 globalhuman

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

github-actions[bot] avatar Aug 09 '22 16:08 github-actions[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, feel free to create a new issue with up-to-date information.

github-actions[bot] avatar Aug 17 '22 16:08 github-actions[bot]

  {
    "command": "toggleEditors",
    "accelerator": "Ctrl+W"
  }

doesn't work in Linux too. It changes to WYSYWIG but not back.

banan314 avatar Mar 15 '23 02:03 banan314