Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-71427

autocomplete form for tags: use semicolon as a separator, just like the comma

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.5.17, 3.8.8, 3.9.6, 3.10.3, 3.11
    • Tags
    • None
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_35_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      For adding tags to a course, forum, etc., an autocomplete form is used that interprets the comma as a separator. Pressing the comma key is handled the same way as pressing enter, the semicolon is used as a normal character. My suggestion is to use both comma and semicolon as separators. This can easily be achieved, just the if-statement in lib/amd/src/form-autocomplete.js, line 686 (v3.5.17), has to be modified. Replace

      if (e.keyCode === KEYS.COMMA) {

      with

      if (e.keyCode === KEYS.COMMA || e.keyCode === 59) {

       That's all.

            Unassigned Unassigned
            dertheo Matthias Then
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.