[Freeipa-devel] [PATCH] 150 Text widget's dirty state is changed on various input methods

Petr Vobornik pvoborni at redhat.com
Mon May 28 11:44:07 UTC 2012


on_value_changed event in textboxes and textareas was raised only on 
keyboard input. If user used different input method such as paste or 
browser undo and redo functions widget's on_value_changed event wasn't 
raised and so dirty state wasn't changed as well.

This patch adds listener to text's and textarea's 'input' event. Input 
is a HTML 5 event which is raises on user initiated action.
Some of user initiated actions :
  * Cut
  * Copy
  * Paste
  * Undo
  * Redo
  * Clear
  * Typing (like keyup)
  * Form AutoFill
  * User-invoked spellcheck corrections
  * Input from Input Method Editor

It should be supported by all recent versions of major browsers. IE 
doesn't support it up to version 8.

Listener for 'keyup' event was left in implementation for backward 
compatibility with older browsers. This may cause firing on_value_change 
twice but so far it shouldn't cause troubles.

https://fedorahosted.org/freeipa/ticket/2647
-- 
Petr Vobornik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pvoborni-0150-Text-widget-s-dirty-state-is-changed-on-various-inpu.patch
Type: text/x-patch
Size: 3101 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120528/cad93c03/attachment.bin>


More information about the Freeipa-devel mailing list