fixed comment into code
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
namespace CursorLang.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Перехватывает Caps Lock на уровне системы и делит нажатия на короткие
|
||||
/// и длинные. Что делать с ними — решают подписчики.
|
||||
/// Intercepts Caps Lock at the system level and splits the presses into short and
|
||||
/// long ones. What to do with them is up to the subscribers.
|
||||
/// </summary>
|
||||
public interface ICapsLockHotkeyService
|
||||
{
|
||||
/// <summary>Короткое нажатие: клавишу отпустили до порога удержания.</summary>
|
||||
/// <summary>A short press: the key was released before the hold threshold.</summary>
|
||||
event EventHandler? Tapped;
|
||||
|
||||
/// <summary>Порог удержания пройден, клавишу всё ещё держат.</summary>
|
||||
/// <summary>The hold threshold has passed, the key is still held.</summary>
|
||||
event EventHandler? HoldStarted;
|
||||
|
||||
/// <summary>Удержание закончилось: клавишу отпустили.</summary>
|
||||
/// <summary>The hold is over: the key was released.</summary>
|
||||
event EventHandler? HoldEnded;
|
||||
|
||||
/// <summary>Стоит ли перехват прямо сейчас.</summary>
|
||||
/// <summary>Whether the hook is installed right now.</summary>
|
||||
bool IsRunning { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Начинает перехват. Вызывать нужно из потока пользовательского интерфейса:
|
||||
/// системный хук клавиатуры работает только на потоке с циклом сообщений.
|
||||
/// Starts intercepting. Must be called from the user interface thread:
|
||||
/// a system keyboard hook works only on a thread with a message loop.
|
||||
/// </summary>
|
||||
void Start();
|
||||
|
||||
/// <summary>Снимает перехват, возвращая клавише её обычное поведение.</summary>
|
||||
/// <summary>Removes the hook, giving the key its usual behaviour back.</summary>
|
||||
void Stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user