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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • None
    • None
    • cordova-plugin-dialogs

    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

            Unassigned Unassigned
            michaelkwun Michael Kwun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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