You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Michael Kwun (JIRA)" <ji...@apache.org> on 2017/05/23 18:39:04 UTC

[jira] [Updated] (CB-12845) in prompt() dialog, default text should be selected on focus

     [ https://issues.apache.org/jira/browse/CB-12845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Kwun updated CB-12845:
------------------------------
    Summary: in prompt() dialog, default text should be selected on focus  (was: default text should have be selected in prompts dialog)

> in prompt() dialog, default text should be selected on focus
> ------------------------------------------------------------
>
>                 Key: CB-12845
>                 URL: https://issues.apache.org/jira/browse/CB-12845
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: cordova-plugin-dialogs
>            Reporter: Michael Kwun
>            Priority: Minor
>              Labels: easyfix
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> At least in the Android Java source code for the dialogs plugin, if one calls the "prompt" method and includes a default text argument, the default text is not highlighted on focus in the created dialog. It sure seems like it should be.
> Fix:  In the Notification.java, after
> promptInput.setText(defaultText);
> add the line:
> promptInput.setSelectAllOnFocus(true);
> I've tested this, and it works for me.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org