Reverted previous change. Moving cursor to end of input does not work on firefox OS.