title: Navigation Drawer is not operable by keyboard only
body: <p>I have developed an app based on the &quot;Navigation Drawer Activity&quot; template in Android Studio. However, I have now discovered that it is not possible to open the navigation drawer with a bluetooth keyboard.</p>
  <p>At first I thought I deleted code by mistake but when I created a new project and compiled it without any changes I found out that the navigation drawer is indeed not operable with the keyboard. I also tried all possible key combinations. Without success.</p>
  <p>As I am not yet that experienced in programming, I am not sure how to solve this problem.</p>
  <p>As far as I understand the code of the template, the following code in the MainActivity.java would have to be modified to solve the problem.</p>
  <pre><code>    DrawerLayout drawer = findViewById(R.id.drawer_layout);
      NavigationView navigationView = findViewById(R.id.nav_view);
      // Passing each menu ID as a set of Ids because each
      // menu should be considered as top level destinations.
      mAppBarConfiguration = new AppBarConfiguration.Builder(
              R.id.nav_home, R.id.contactFragment, R.id.imageFragment, R.id.editFieldFragment, R.id.headersFragment, R.id.contrastFragment, R.id.imageButtonFragment, R.id.tabOrderFragment)
              .setDrawerLayout(drawer)
              .build();
      NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);
      NavigationUI.setupActionBarWithNavController(this, navController, mAppBarConfiguration);
      NavigationUI.setupWithNavController(navigationView, navController);
  }
  </code></pre>
  <p>You can find the complete project here <a href="https://github.com/petra1/AccessibilityDemo" rel="nofollow noreferrer">AccessibilityDemo</a> if you need it.</p>
  <p>Can someone please help me solve this problem?</p>
  <p>Many thanks in advance.</p>
  <p>Kind regards</p>
  <p>Petra Ritter</p>