Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12845

in prompt() dialog, default text should be selected on focus

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-plugin-dialogs
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              michaelkwun Michael Kwun
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified