mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
Add a new MV3 sample demonstrating the chrome.commands API. The sample registers custom keyboard shortcuts in the manifest, handles command events in the service worker with notifications and badge text feedback, and uses chrome.commands.getAll() in the popup to display all registered shortcuts. Closes #1126
17 lines
360 B
HTML
17 lines
360 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="stylesheet" href="popup.css" />
|
|
</head>
|
|
<body>
|
|
<h1>Registered Commands</h1>
|
|
<div id="commands"></div>
|
|
<p id="hint">
|
|
Customize shortcuts at
|
|
<code>chrome://extensions/shortcuts</code>
|
|
</p>
|
|
<script src="popup.js"></script>
|
|
</body>
|
|
</html>
|