Semantic-ui: How to focus semantic drop down ?

Created on 22 Nov 2016  路  3Comments  路  Source: Semantic-Org/Semantic-UI

I want set a hot key for semantic drop down on Ctrl+Q.how can i do that.tried usual methods it is not working

Usage Question

All 3 comments

Going to need more detail here. Do you want to intercept the crtl+q keystrokes and then focus a dropdown?

I guess he wants a way to focus a dropdown programmatically when Ctrl+Q is typed. I'm interested in doing the same thing, but cannot seem to find a clean way of focusing the dropdown and giving the user the ability to type in a search or choose options. I've tried calling focus() on the div.ui.dropdown, but that doesn't work (I've tried it with & without tabindex="-1"). The only way I've found, is to crawl the DOM until I find the input.search element and call focus() on that, but that feels like a hack to me.

https://github.com/Semantic-Org/Semantic-UI#getting-help

Please do not post usage questions to GitHub Issues. For these types of questions use StackOverflow, ProjectTalk or join our Gitter chatroom.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

Morrolan picture Morrolan  路  3Comments

vinhtq picture vinhtq  路  3Comments

ghost picture ghost  路  3Comments

playgithub picture playgithub  路  3Comments