mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
Update shortcut information
This commit is contained in:
@@ -106,29 +106,31 @@ export default class Pips extends TranslatedComponent {
|
|||||||
* @param {Event} e Keyboard Event
|
* @param {Event} e Keyboard Event
|
||||||
*/
|
*/
|
||||||
_keyDown(e) {
|
_keyDown(e) {
|
||||||
switch (e.keyCode) {
|
if (e.ctrlKey || e.metaKey) { // CTRL/CMD
|
||||||
case 9: // Tab == boost
|
switch (e.keyCode) {
|
||||||
if (this.props.ship.canBoost()) {
|
case 66: // b == boost
|
||||||
|
if (this.props.ship.canBoost()) {
|
||||||
|
e.preventDefault();
|
||||||
|
this._toggleBoost();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 37: // Left arrow == increase SYS
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this._toggleBoost();
|
this._incSys();
|
||||||
}
|
break;
|
||||||
break;
|
case 38: // Up arrow == increase ENG
|
||||||
case 37: // Left arrow == increase SYS
|
e.preventDefault();
|
||||||
e.preventDefault();
|
this._incEng();
|
||||||
this._incSys();
|
break;
|
||||||
break;
|
case 39: // Right arrow == increase WEP
|
||||||
case 38: // Up arrow == increase ENG
|
e.preventDefault();
|
||||||
e.preventDefault();
|
this._incWep();
|
||||||
this._incEng();
|
break;
|
||||||
break;
|
case 40: // Down arrow == reset
|
||||||
case 39: // Right arrow == increase WEP
|
e.preventDefault();
|
||||||
e.preventDefault();
|
this._reset();
|
||||||
this._incWep();
|
break;
|
||||||
break;
|
}
|
||||||
case 40: // Down arrow == reset
|
|
||||||
e.preventDefault();
|
|
||||||
this._reset();
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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