stdlib-js / stdlib-js/stdlib

[BUG]: Multiline editing is broken in the REPL

Abierto
#4,970 1 comentario 0 reacciones 1 asignado Reclamado por @Snehil-Shah Ver en GitHub
Bug REPL
Lenguaje dominante
JavaScript
Estrellas
6k
Forks
1.3k
Merge medio
1 d 3 h
PR fusionados (30 d)
611

Descripción

### Description

After keybindings, some multiline editing features like continuous backspaces into the previous line and moving back to the previous line using left arrow, is broken. It's because we are intercepting these keys in the editor actions itself.

Also when the completer tab is on, backspace is acting twice, I believe for the same reason.

This will be fixed when we add the ability to configure existing actions (like the multiline actions itself), where we'll club the logic of backspaces, left arrows, and right arrows in one place.

### Related Issues

Related issues #2647 .

### Questions

No.

### Demo

_No response_

### Reproduction

- Try to hit backspace or left arrow when at the beginning of a line, in a multiline input.

### Expected Results

It should go back to the previous line.

### Actual Results

Doesn't go back to the previous line.

### Environments

Node.js

### Checklist

- [x] Read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
- [x] Searched for existing issues and pull requests.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.