Ctrl+Alt+E Yields € symbol in addition to switching to edit mode.
- Langage dominant
- JavaScript
- Étoiles
- 10.1k
- Forks
- 1.1k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
If I'm in "both" mode, and press Ctrl+Alt+E to switch to "edit" mode, It will work, but it will also put an `€` in the current cursor position.
An `event.preventDefault()` should probably fix this, however, this should only be done, if there's actually a switch happening (meaning: If I'm *already* in edit-mode, please don't `preventDefault`, or we won't be able to type € symbols any more).
**To reproduce**
* (you may need an european keyboard layout, I'm not sure)
* Set any pad to "both" mode where you can see the editor and rendered html at once.
* Make sure, your focus is in the editor, so you can actually type
* press Ctrl+Alt+E
**Current Result**
* The view is being switched *and* you also get € at the current cursor position
**Desired Result**
* when *already* in edit mode: just type the €
* when *not* in edit mode: just switch to edit
I'm not sure if other (Ctrl+Alt+V or Ctrl+Alt+B) shortcuts interfere with anything, they do not on my layout. But this could be a general pattern, I believe.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez le raccourci clavier lorsque l’éditeur est sélectionné, d’abord en both mode, puis en edit mode. Trouvez la gestion du raccourci clavier pour le changement de mode et vérifiez que le caractère € n’est supprimé que lorsqu’un changement de mode se produit ; c’est terminé lorsque le changement ne produit aucun €, tandis que la saisie de € en edit mode continue de fonctionner.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100