Description

Pasted text in the search field requires workaround steps. When pasting in the search form, the buttons remain greyed out as though no text was typed.

By default, the «return» key searches for title matches. Upon completion of that search, the styled text is erased and the Text button is enabled. This is inefficient since casual users are confused about the grey buttons, which results in duplicate searches and excessive server load.

Browsers affected so far are Safari, iCab and Omniweb, and Firefox, but as more browsers use Apple's built-in Webkit, the problem may become more severe.

Steps to reproduce

  1. On a participating computer, using a text editor, copy the text.
  2. Paste the text in the Search form in the Moin page.
  3. The buttons remain grey. Add a space and the buttons are now clickable.

Component selection

Don't know.

Details

This Wiki.

Workaround

Adding one space character (as a minimum action) causes the text to be recognized and suddenly the buttons are clickable.

Discussion

This also happens with copy and paste on linux/firefox. Same workaround works, too.

Here some first test results with a small testprogramm test.html

-- OliverSiemoneit 2008-01-05 17:08:31

Some reserch into onpaste event:

Therefore: Adding  onpaste="searchChange(this)"to the input field should fix the Safari behaviour. -- OliverSiemoneit 2008-01-05 18:35:19


For me on a linux box copying in firefox 2.0.0.11 by strg+c and srtg+v works of any kind of text. It does not work to insert text only using the middle mouse button.


Some research into oninput event:

It seems like this: Adding  oninput="searchChange(this)"to the input field should be the correct replacment for the onkeyup event. However IE does not support oninput. IE needs onkeyup (to recognize if you type something in, paste something in via ctrl-v) and onpaste (for paste via the menu bar).

-- OliverSiemoneit 2008-01-05 22:15:27

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/PastedTextClobbersForms (last edited 2008-01-06 16:11:23 by Gnarlodious)