mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
Update shortcut information
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user