1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-08 00:15:50 +03:00

describe how to report bugs in contribution guide and add missing Jump(row, col) to readme

Этот коммит содержится в:
rhysd
2022-06-21 10:14:37 +09:00
родитель b001959b77
Коммит 35f141e770
2 изменённых файлов: 19 добавлений и 0 удалений

Просмотреть файл

@@ -340,6 +340,7 @@ notify how to move the cursor.
| `textarea.move_cursor(CursorMove::Head)` | Move cursor to the head of line |
| `textarea.move_cursor(CursorMove::Top)` | Move cursor to top of lines |
| `textarea.move_cursor(CursorMove::Bottom)` | Move cursor to bottom of lines |
| `textarea.move_cursor(CursorMove::Jump(row, col))` | Move cursor to (row, col) position |
To define your own key mappings, simply call the above methods in your code instead of `TextArea::input()` method. The
following example defines modal key mappings like Vim.