fixed comment into code
This commit is contained in:
@@ -4,9 +4,9 @@ using CursorLang.Models;
|
||||
namespace CursorLang.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Превращает нажатия Caps Lock в действия: короткое — переключает раскладку,
|
||||
/// длинное — только показывает подсказку. Он же включает и выключает перехват
|
||||
/// вслед за галочкой в настройках.
|
||||
/// Turns Caps Lock presses into actions: a short one switches the layout, a long one
|
||||
/// only shows the popup. It also turns the hook on and off following the checkbox in
|
||||
/// the settings.
|
||||
/// </summary>
|
||||
public sealed class CapsLockSwitchCoordinator : IDisposable
|
||||
{
|
||||
@@ -68,8 +68,8 @@ public sealed class CapsLockSwitchCoordinator : IDisposable
|
||||
|
||||
private void OnTapped(object? sender, EventArgs e) => _layoutService.SwitchToNext();
|
||||
|
||||
// Раскладку не меняем, но и молчать нельзя: без подсказки долгое нажатие
|
||||
// выглядит как то, что клавиша просто не сработала
|
||||
// We do not change the layout, but staying silent will not do either: without the
|
||||
// popup a long press looks as if the key simply did not work
|
||||
private void OnHoldStarted(object? sender, EventArgs e) =>
|
||||
_popupService.ShowUntilHidden(_layoutService.Current);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user