keyboard event support

2 posts, 0 answers
  1. mathieu
    mathieu avatar
    22 posts
    Member since:
    Jun 2012

    Posted 28 Feb 2017 Link to this post

    I would like to be able to check/uncheck the switch with the keyboard
    but nothing bind to the switch. i tried : 

    scope.toggleSwitch.bind("keyup", toggleKeyUp);
    scope.toggleSwitch.bind("focus", toggleFocus);
    scope.toggleSwitch.bind("click", toggleclick);

    any idea wuld be appreciate thanks

  2. Stefan
    Stefan avatar
    1595 posts

    Posted 02 Mar 2017 Link to this post

    Hello Мathieu,

    This occurs because the rendered switch is actually a span element which does not have key events.

    The click event can be attached, but the widget is already toggling values on click:

    Let me know if you need information on this matter.

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top