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

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.5.17, 3.8.8, 3.9.6, 3.10.3, 3.11
    • None
    • Tags
    • 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

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

            Dates

              Created:
              Updated: