Capture "Shift + Tab" key pressed in textarea box

1 Answer 1794 Views
ComboBox TextArea
Karthikeyan
Top achievements
Rank 1
Iron
Karthikeyan asked on 15 Jul 2021, 01:06 PM | edited on 15 Jul 2021, 01:30 PM

Hi Team,

 

I'm Trying to capture "Shift + Tab" key combination is pressed or not in textarea/Combobox control. unfortunately I'm able to get only the last key pressed that is "tab". But my requirement is I need to detect "Shift + Tab". 

Wich event I should use to detect "Shift + Tab" key

Can anyone help me..

I'm using this in textarea and combobox.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 16 Jul 2021, 08:18 AM

Hello, Karthikeyan,

To determine if the shift key is pressed, use the KeyboardEvent.shiftKey property of the event that is used:

https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/shiftKey

This will provide the information if the shift key was pressed at the same time the tab key was pressed.

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Karthikeyan
Top achievements
Rank 1
Iron
commented on 16 Jul 2021, 02:59 PM

Any KeyUp , Keydown event available for combobox ?
Stefan
Telerik team
commented on 19 Jul 2021, 06:22 AM

Currently, the event can only be added only to a wrapper element around the ComboBox.

If you wish, you can log a request to add a built-in onKeyDown even to the ComboBox:

https://feedback.telerik.com/kendo-react-ui
Tags
ComboBox TextArea
Asked by
Karthikeyan
Top achievements
Rank 1
Iron
Answers by
Stefan
Telerik team
Share this question
or