Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9264637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T13:52:29+00:00 2026-06-18T13:52:29+00:00

I have a Twitter Bootstrap dropdown menu on a nav-bar which opens correctly when

  • 0

I have a Twitter Bootstrap dropdown menu on a nav-bar which opens correctly when I click on it and the cursor up/down keys work correctly.

However if I open the same menu using:
$('#menu').dropdown('toggle'); in a keydown or keyup event handler, the menu opens/closing correctly however the cursor up/down keys don’t work. In fact the dropdown menu keydown event doesn’t trigger.

Here is the html and Javascript:

<ul class="nav">   <!-- "KB Menu"   -->
    <li class="dropdown kb_menu hideit">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown">Knowledge Bases<b class="caret"></b></a>
      <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel" id="kb_menu">
      </ul>
    </li>
</ul>


$(document).on('keydown', function( event ){
    if ( event.ctrlKey ){
        if ( event.keyCode == 191 ){   // Ctrl+/ = 191
            $('#kb_menu').dropdown('toggle');
        }
    }
});

I have tried everything I can think off to no avail so far.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T13:52:31+00:00Added an answer on June 18, 2026 at 1:52 pm

    Add the following line after $('#kb_menu').dropdown('toggle'):

    $('#kb_menu').find('li:first > a').focus();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this bootstrap twitter dropdown menu. I replaced the click event with hover
I have been trying to get Twitter Bootstrap btn-group with dropdown to work for
I am using twitter bootstrap and have a fixed nav bar. The navbar has
I have a Twitter Bootstrap (v2.2.1) collapsable navbar and dropdown buttons. They work all
I have a twitter bootstrap nav bar, but evertime I navigate on a link
Using twitter bootstrap. on the site i have a top nav bar consisting of
This is a bit of code from Twitter Bootstrap .navbar .nav.pull-right .dropdown-menu, .navbar .nav
I have this twitter bootstrap dropdown menu that is hidden inside a parent div
I have a dropdown menu in my layout/applications.html.erb done with twitter bootstrap <li class=divider-vertical></li>
I have a question with Twitter Bootstrap, I'm using the Dropdown plugin and I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.