| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | Send text_input_rectangle requests for text-input | Tadeo Kondrak | 2021-01-29 | -0/+77 |
| | | ||||
| * | ime: fix rendering of pre-edit cursor when positioned after the pre-edit string | Daniel Eklöf | 2021-01-26 | -8/+11 |
| | | | | | | | | | | | | | We failed to convert the byte-indices to cell indices, resulting in a box cursor covering the entire pre-edit string. Note that in addition to fixing the translation from byte index to cell index, the rendered had to be updated to dirty one extra cell from the original grid. Without this, we left trailing cursors behind us when the user deleted text from the pre-edit string. | |||
| * | ime: don’t call text-input functions when it isn’t available | Daniel Eklöf | 2021-01-21 | -0/+6 |
| | | | | | Closes #259 | |||
| * | ime: don’t underline characters inside the cursor-box | Daniel Eklöf | 2020-12-07 | -117/+123 |
| | | ||||
| * | ime: call render_refresh_search() instead of render_refresh() | Daniel Eklöf | 2020-12-07 | -2/+8 |
| | | | | | When scrollback search is active | |||
| * | ime: store wchar version of pre-edit string in terminal struct | Daniel Eklöf | 2020-12-07 | -4/+5 |
| | | ||||
| * | ime: commit text using search_add_chars() while in scrollback search mode | Daniel Eklöf | 2020-12-07 | -7/+8 |
| | | ||||
| * | ime: don’t commit to the slave while scrollback searching | Daniel Eklöf | 2020-12-07 | -5/+9 |
| | | ||||
| * | ime: add functions to enable/disable IME, simplify code that enables IME | Daniel Eklöf | 2020-12-07 | -40/+42 |
| | | | | | | | | | | | | | | | | | | We may want to be able to enable/disable IME run-time, even though we have received an ‘enter’ IME event. This enables us to do that. Also add functions to enable/disable IME on a per-terminal instance basis. A terminal may have multiple seats focusing it, and enabling/disabling IME in a terminal instance enables/disables IME on all those seats. Finally, the code to enable IME is simplified; the *only* surface that can ever receive ‘enter’ IME events is the main grid. All other surfaces are sub-surfaces, without their own keyboard focus. | |||
| * | ime: expand cursor cell-end across multi-cell characters | Daniel Eklöf | 2020-12-07 | -0/+7 |
| | | | | | | This fixes an issue where the cursor ended in the middle of e.g double width characters. | |||
| * | ime: don’t adjust cursor’s cell-end if it’s equal to the cell-begin | Daniel Eklöf | 2020-12-07 | -6/+12 |
| | | ||||
| * | ime: set cursor end correctly when it ends *after* the pre-edit string | Daniel Eklöf | 2020-12-07 | -0/+3 |
| | | ||||
| * | ime: use correct index when calculating number of *cells* to advance | Daniel Eklöf | 2020-12-07 | -1/+1 |
| | | ||||
| * | ime: calculate wchar widths once | Daniel Eklöf | 2020-12-07 | -3/+8 |
| | | ||||
| * | ime: make IME compile-time optional | Daniel Eklöf | 2020-12-07 | -17/+46 |
| | | ||||
| * | ime: render pre-edit text | Daniel Eklöf | 2020-12-07 | -22/+187 |
| | | | | | | | | | | | | | | | This is done by allocating cells for the pre-edit text when receiving the text-input::done() call, and populating them by converting the utf-8 formatted pre-edit text to wchars. We also convert the pre-edit cursor position to cell positions (it can cover multiple cells). When rendering, we simply render the pre-edit cells on-top off the regular grid. While doing so, we also mark the underlying, “real”, cells as dirty, to ensure they are re-rendered when the pre-edit text is modified or removed. | |||
| * | ime: wip: commit all changes in ‘done()’ | Daniel Eklöf | 2020-12-07 | -2/+40 |
| | | ||||
| * | ime: feed committed string to client application | Daniel Eklöf | 2020-12-07 | -0/+4 |
| | | ||||
| * | ime: disable text-input on surface leave | Daniel Eklöf | 2020-12-07 | -2/+4 |
| | | ||||
| * | ime: wip: add text-input object to seat | Daniel Eklöf | 2020-12-07 | -0/+97 |
