Ctrl+Alt+E Yields € symbol in addition to switching to edit mode.
- Lenguaje dominante
- JavaScript
- Estrellas
- 10.1k
- Forks
- 1.1k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Línea de trabajo
Reproduce el atajo de teclado con el editor enfocado, primero en both mode y después en edit mode. Encuentra el manejo del atajo de teclado para cambiar de modo y verifica que el carácter € solo se suprima cuando se produce un cambio de modo; se considera terminado cuando el cambio no produce ningún €, mientras que escribir € en edit mode sigue funcionando.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100