add new tag by "enter"

2 posts, 1 answers
  1. Ran
    Ran avatar
    29 posts
    Member since:
    Apr 2015

    Posted 20 Apr 2016 Link to this post


    I try to add a new tag by clicking "enter" on the keyboard.

    i found this:

    This example showing how to add new tag by click "comma", and would like to improve it to also support clicking enter( ==13).

    Any ideas ?




  2. Answer
    Georgi Krustev
    Georgi Krustev avatar
    3747 posts

    Posted 22 Apr 2016 Link to this post

    Hello Ran,

    You will need to wire the "keydown" event of the input element. On Enter you will need to use the same logic used in the filtering event when "," is typed in order to add new item.

    Please note that custom implementations fall out of the scope of the standard support service as it covers only built-in functionality of the widgets.

    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top