-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Composer: Persistent composition when starting the edition
When inputing a character in the grid, we capture the character and use it to start the edition, which opens a new composer and focus it. This change of focus closes the Input Method Editor if present. This typically affect people from Asia writing in their native language (chinese, japanese, etc) This revision addresses the issue by replacing the hidden input in the grid with the `GridComposer`. The later will therefore always be in the DOM, capture the characters with the IME and then change its position based on the edition mode. closes #3456 Task: 3685891 Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
- Loading branch information
Showing
20 changed files
with
278 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
<templates> | ||
<t t-name="o-spreadsheet-GridComposer" owl="1"> | ||
<div class="o-grid-composer" t-att-style="containerStyle" t-ref="gridComposer"> | ||
<Composer | ||
focus="props.focus" | ||
inputStyle="composerStyle" | ||
rect="composerState.rect" | ||
delimitation="composerState.delimitation" | ||
onComposerUnmounted="props.onComposerUnmounted" | ||
onComposerContentFocused="props.onComposerContentFocused" | ||
/> | ||
<Composer t-props="composerProps"/> | ||
</div> | ||
</t> | ||
</templates> |
Oops, something went wrong.