mirror of
https://github.com/fregante/GhostText.git
synced 2024-10-05 23:47:43 +03:00
Add keyboard shortcut customization instructions (#278)
This commit is contained in:
parent
c33d6bf040
commit
3722bdecb0
@ -19,3 +19,8 @@
|
||||
#serverPort {
|
||||
width: 7em;
|
||||
}
|
||||
|
||||
html:not(.chrome) .chrome-only,
|
||||
html:not(.firefox) .firefox-only {
|
||||
display: none;
|
||||
}
|
||||
|
@ -44,7 +44,15 @@
|
||||
</label>
|
||||
</p>
|
||||
</form>
|
||||
<hr>
|
||||
<div class="firefox-only">
|
||||
<h3>Shortcuts</h3>
|
||||
<p>You can customize the keyboard shortcuts by clicking the gear icon in the upper-right corner and selecting "Manage Extension Shortcuts".</p>
|
||||
</div>
|
||||
<div class="chrome-only">
|
||||
<h3>Shortcuts</h3>
|
||||
<p>You can customize the keyboard shortcuts by visiting Chrome’s extensions shortcuts page. Copy-paste this URL: <code>chrome://extensions/shortcuts</code></p>
|
||||
</div>
|
||||
<h3>Info</h3>
|
||||
<p>You can find information on how GhostText works and how to troubleshoot any issues on <a href="https://github.com/fregante/GhostText">its repo</a>.</p>
|
||||
<p>If you find this useful, consider supporting its development by <a href="https://github.com/sponsors/fregante">donating or sponsoring me on GitHub</a>.</p>
|
||||
<p>Made with 🍕 by <a href="https://fregante.com">fregante</a>.</p>
|
||||
|
@ -1,3 +1,9 @@
|
||||
import optionsStorage from './options-storage.js';
|
||||
|
||||
optionsStorage.syncForm(document.querySelector('form'));
|
||||
|
||||
if (location.protocol.startsWith('moz-')) {
|
||||
document.documentElement.classList.add('firefox');
|
||||
} else if (location.protocol.startsWith('chrome-')) {
|
||||
document.documentElement.classList.add('chrome');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user