diff options
| author | Xavier Morel <xmo@openerp.com> | 2013-01-23 10:16:00 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2013-01-23 10:16:00 +0100 |
| commit | 01ee5f60ee21fad5130a32b820ed62f6a802389d (patch) | |
| tree | 545449f883605c57f5531c97182649e6473e97a1 /addons/web/doc/module/static/src/css/web_example.css.1.diff | |
| parent | e5ad5f8e107e395cd9078e4b9a097ab38a7b4b6f (diff) | |
[FIX] pasting HTML content into the text box, then trying to navigate/alter it
Navigation implementation can only deal with straight text (and
asserts that), if HTML is pasted in a search input
InputView#getSelection will throw errors and refuse to act.
Clean up input content after a paste event, to ensure only plain text
is present so it can be navigated.
Don't forget to correctly re-set the cursor at the end of the input
data, otherwise the user will face various deep DOM errors when trying
to move around the input with the arrow keys (which he would usually
be able to do after a paste).
lp bug: https://launchpad.net/bugs/1102237 fixed
bzr revid: xmo@openerp.com-20130123091600-nd4rwqpin6qj8ult
Diffstat (limited to 'addons/web/doc/module/static/src/css/web_example.css.1.diff')
0 files changed, 0 insertions, 0 deletions
