C# 클래스 MouseKeyboardActivityMonitor.HotKeys.HotKeySet

An immutable set of Hot Keys that provides an event for when the set is activated.
파일 보기 프로젝트 열기: katopz/oskz-vcsharp

공개 메소드들

메소드 설명
HotKeySet ( IEnumerable hotkeys ) : System

Creates an instance of the HotKeySet class. Once created, the keys cannot be changed.

RegisterExclusiveOrKey ( IEnumerable orKeySet ) : Keys

Registers a group of Keys that are already part of the HotKeySet in order to provide better flexibility among keys. HotKeySet hks = new HotKeySet( new [] { Keys.T, Keys.LShiftKey, Keys.RShiftKey } ); RegisterExclusiveOrKey( new [] { Keys.LShiftKey, Keys.RShiftKey } ); allows either Keys.LShiftKey or Keys.RShiftKey to be combined with Keys.T.

UnregisterExclusiveOrKey ( Keys anyKeyInTheExclusiveOrSet ) : bool

Unregisters a previously set exclusive or based on the primary key.

비공개 메소드들

메소드 설명
GetExclusiveOrPrimaryKey ( Keys k ) : Keys

Gets the primary key

GetPrimaryKey ( Keys k ) : Keys

Resolves obtaining the key used for state checking.

InitializeKeys ( ) : void

Adds the keys into the dictionary tracking the keys and gets the real-time status of the Keys from the OS

InvokeHotKeyHandler ( HotKeyHandler hotKeyDelegate ) : void

General invocation handler

OnKey ( KeyEventArgsExt kex ) : void

OnKeyDown ( Keys k ) : void
OnKeyUp ( Keys k ) : void

메소드 상세

HotKeySet() 공개 메소드

Creates an instance of the HotKeySet class. Once created, the keys cannot be changed.
public HotKeySet ( IEnumerable hotkeys ) : System
hotkeys IEnumerable Set of Hot Keys
리턴 System

RegisterExclusiveOrKey() 공개 메소드

Registers a group of Keys that are already part of the HotKeySet in order to provide better flexibility among keys. HotKeySet hks = new HotKeySet( new [] { Keys.T, Keys.LShiftKey, Keys.RShiftKey } ); RegisterExclusiveOrKey( new [] { Keys.LShiftKey, Keys.RShiftKey } ); allows either Keys.LShiftKey or Keys.RShiftKey to be combined with Keys.T.
public RegisterExclusiveOrKey ( IEnumerable orKeySet ) : Keys
orKeySet IEnumerable
리턴 Keys

UnregisterExclusiveOrKey() 공개 메소드

Unregisters a previously set exclusive or based on the primary key.
public UnregisterExclusiveOrKey ( Keys anyKeyInTheExclusiveOrSet ) : bool
anyKeyInTheExclusiveOrSet Keys Any key used in the Registration method used to create an exclusive or set
리턴 bool