defined default hotkey for sound on/off

This commit is contained in:
thrust26 2019-02-14 19:01:21 +01:00
parent 40e12f0465
commit 481c63f980
2 changed files with 6 additions and 2 deletions

View File

@ -1518,8 +1518,8 @@
<tr>
<td>Toggle sound on/off (*)</td>
<td>Alt + '</td>
<td>Cmd + '</td>
<td>Control + ]</td>
<td>Control + ]</td>
</tr>
<tr>

View File

@ -524,6 +524,10 @@ void PhysicalKeyboardHandler::handleEvent(StellaKey key, StellaMod mod, bool sta
myOSystem.console().changeHeight(-1);
break;
case KBDK_RIGHTBRACKET: // Ctrl-] toggles sound
myOSystem.sound().toggleMute();
break;
default:
handled = false;
break;