Update shortcut information

This commit is contained in:
Cmdr McDonald
2017-03-16 10:13:36 +00:00
parent 750d23b10a
commit 69489aa267
2 changed files with 29 additions and 22 deletions

View File

@@ -106,8 +106,9 @@ export default class Pips extends TranslatedComponent {
* @param {Event} e Keyboard Event * @param {Event} e Keyboard Event
*/ */
_keyDown(e) { _keyDown(e) {
if (e.ctrlKey || e.metaKey) { // CTRL/CMD
switch (e.keyCode) { switch (e.keyCode) {
case 9: // Tab == boost case 66: // b == boost
if (this.props.ship.canBoost()) { if (this.props.ship.canBoost()) {
e.preventDefault(); e.preventDefault();
this._toggleBoost(); this._toggleBoost();
@@ -131,6 +132,7 @@ export default class Pips extends TranslatedComponent {
break; break;
} }
} }
}
/** /**
* Handle a click * Handle a click

View File

@@ -349,10 +349,15 @@ The damage received panel provides information about the effectiveness of your b
<h1>Keyboard Shortcuts</h1> <h1>Keyboard Shortcuts</h1>
<dl> <dl>
<dt>Ctrl-b</dt><dd>toggle boost</dd>
<dt>Ctrl-e</dt><dd>open export dialogue (outfitting page only)</dd> <dt>Ctrl-e</dt><dd>open export dialogue (outfitting page only)</dd>
<dt>Ctrl-h</dt><dd>open help dialogue</dd> <dt>Ctrl-h</dt><dd>open help dialogue</dd>
<dt>Ctrl-i</dt><dd>open import dialogue</dd> <dt>Ctrl-i</dt><dd>open import dialogue</dd>
<dt>Ctrl-o</dt><dd>open shortlink dialogue</dd> <dt>Ctrl-o</dt><dd>open shortlink dialogue</dd>
<dt>Ctrl-left-arrow</dt><dd>increase SYS capacitor</dd>
<dt>Ctrl-up-arrow</dt><dd>increase ENG capacitor</dd>
<dt>Ctrl-right-arrow</dt><dd>increase WEP capacitor</dd>
<dt>Ctrl-down-arrow</dt><dd>reset power distributor</dd>
<dt>Esc</dt><dd>close any open dialogue</dd> <dt>Esc</dt><dd>close any open dialogue</dd>
</dl> </dl>
<h1>Glossary</h1> <h1>Glossary</h1>