Hey all!

Long time lurker, first time poster here on the forums, hopefully this is in the right place. In this and many, many previous MIUI builds I've had an issue where when I try to enter text into the browser search form with my droid 1 slide-out keyboard, the browser highlights the first letter entered, and any subsequent keypress deletes the first letter, replacing it with the second one that was entered. (ie. I type the letter "E". The browser automatically highlights this "E". Then I press "D" and because the "E" was highlighted, it is replaced with a "D".). This wasn't a huge issue, but was just one of those minor annoyances that never seemed to go away. After poking around the Cyanogenmod repos, I noticed that this used to be an issue in CM7, and a bugfix had been submitted. (See here: http://review.cyanogenmod.com/#patch...rchDialog.java)

Since MIUI doesn't provide source code, I replicated the fix by decompiling my droid's framework.jar with apktool.

After decompiling, I changed the line: ".field private static final REWRITE_QUERIES:Z = true" to ".filed private static final REWRITE_QUERIES:Z = false" in "android/app/SearchDialog.smali". After recompiling and reloading the new framework.jar to my droid, I rebooted and all seems to be well. The browser no longer highlights the first entry from my physical keyboard. I haven't given this much time to test to make sure it didn't break anything else, but so far so good. I've attached the recompiled framework.jar for anyone else who is having this issue and wants to give my fix a go (just make sure you backup your original framework.jar in case it breaks something). I don't know how to create a flashable zip so if someone wants to do that, great. Otherwise just copy the file to your sdcard and use root explorer to replace the old framework.jar, or push the new one through adb.

Download Framework.jar ~3.4mb
http://db.tt/b56d4uPr