Skip to content

Commit

Permalink
imp - Navigation sounds should play the correct cu...
Browse files Browse the repository at this point in the history
...e

---

The navigation sounds should be adjusted depending on the keypress.

---

Type: imp
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 16, 2025
1 parent 7a9c86d commit e69c79f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion public/Nitrocid/Drivers/Console/BaseConsoleDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,12 @@ public virtual ConsoleKeyInfo ReadKey(bool intercept = false)
{
var keyInfo = SystemConsole.ReadKey(intercept);
_moved = true;
var cueType =
keyInfo.Key == ConsoleKey.Enter ? AudioCueType.KeyboardCueEnter :
keyInfo.Key == ConsoleKey.Backspace ? AudioCueType.KeyboardCueBackspace :
AudioCueType.KeyboardCueType;
if (Config.MainConfig.EnableNavigationSounds && !TermReader.IsReaderBusy)
AudioCuesTools.PlayAudioCue(AudioCueType.KeyboardCueType);
AudioCuesTools.PlayAudioCue(cueType);
return keyInfo;
}

Expand Down

0 comments on commit e69c79f

Please sign in to comment.