keyboard event support

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

    Posted 28 Feb Link to this post

    Hi,
    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
    Admin
    Stefan avatar
    1147 posts

    Posted 02 Mar 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:

    http://dojo.telerik.com/obARA

    Let me know if you need information on this matter.

    Regards,
    Stefan
    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