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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.17, 3.8.8, 3.9.6, 3.10.3, 3.11
    • Fix Version/s: None
    • Component/s: Tags
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_35_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dertheo Matthias Then
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: