Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0067507 authored by Hemal Patel's avatar Hemal Patel Committed by Android (Google) Code Review
Browse files

Merge "Docs: Changed a command in Keyboard Shortcuts" into nyc-dev

parents 68d5e4b9 dd4a8e79
Loading
Loading
Loading
Loading
+17 −9
Original line number Original line Diff line number Diff line
@@ -843,18 +843,26 @@ Directory Access</a> developer documentation.</p>
<h2 id="keyboard_shortcuts_helper">Keyboard Shortcuts Helper</h2>
<h2 id="keyboard_shortcuts_helper">Keyboard Shortcuts Helper</h2>


<p>
<p>
In Android N, the user can press "Alt + /" to trigger a <em>Keyboard Shortcuts</em>
  In Android N, the user can press <strong>Meta + /</strong> to trigger a
screen that displays all shortcuts available both from the system and from
  <em>Keyboard Shortcuts</em> screen that displays all shortcuts available both
the app in focus. These are retrieved automatically from the app’s menu if
  from the system and from the app in focus. The system retrieves these
available, but developers can provide their own fine-tuned shortcuts lists
  shortcuts automatically from the app’s menu if the shortcuts exist. You can
for the screen. You can do this by overriding the new
  also provide your own fine-tuned shortcuts lists for the screen. You can do
<code>Activity.onProvideKeyboardShortcuts()</code> method, described in the downloadable
  this by overriding the new <code>Activity.onProvideKeyboardShortcuts()</code>
<a href="{@docRoot}preview/setup-sdk.html#docs-dl">API Reference</a>.
  method, described in the downloadable <a href=
  "{@docRoot}preview/setup-sdk.html#docs-dl">API Reference</a>.
</p>

<p class="note">
  <strong>Note:</strong> The <strong>Meta</strong> key is not present on all
  keyboards: on a Macintosh keyboard, it is the <strong>Command</strong> key,
  on the Windows keyboard, it is the <strong>Windows</strong> key, and on the
  Pixel C and the Chrome OS keyboards, it is the <strong>Search</strong> key.
</p>
</p>


<p>
<p>
To trigger the Keyboard Shortcuts Helper from anywhere in your app,
  To trigger Keyboard Shortcuts Helper from anywhere in your app, call
call {@code Activity.requestKeyboardShortcutsHelper()} for the relevant activity.
  {@code Activity.requestKeyboardShortcutsHelper()} for the relevant activity.
</p>
</p>


<h2 id="sustained_performance_api">Sustained Performance API</h2>
<h2 id="sustained_performance_api">Sustained Performance API</h2>