Skip to content

Commit

Permalink
Add Numpad and Japanese specific keys and codes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsakamoto committed Jul 6, 2024
1 parent 508e0fc commit 0299dcb
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 0 deletions.
60 changes: 60 additions & 0 deletions HotKeys2/Code.List.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ public partial struct Code
/// <summary>ScrollLock</summary>
public static Code ScrollLock => new("ScrollLock");

/// <summary>Pause</summary>
public static Code Pause => new("Pause");

/// <summary>Equal (=)</summary>
public static Code Equal => new("Equal");

Expand Down Expand Up @@ -284,4 +287,61 @@ public partial struct Code
/// <summary>BracketRight (])</summary>
public static Code BracketRight => new("BracketRight");

/// <summary>Numpad0</summary>
public static Code Numpad0 => new("Numpad0");

/// <summary>Numpad1</summary>
public static Code Numpad1 => new("Numpad1");

/// <summary>Numpad2</summary>
public static Code Numpad2 => new("Numpad2");

/// <summary>Numpad3</summary>
public static Code Numpad3 => new("Numpad3");

/// <summary>Numpad4</summary>
public static Code Numpad4 => new("Numpad4");

/// <summary>Numpad5</summary>
public static Code Numpad5 => new("Numpad5");

/// <summary>Numpad6</summary>
public static Code Numpad6 => new("Numpad6");

/// <summary>Numpad7</summary>
public static Code Numpad7 => new("Numpad7");

/// <summary>Numpad8</summary>
public static Code Numpad8 => new("Numpad8");

/// <summary>Numpad9</summary>
public static Code Numpad9 => new("Numpad9");

/// <summary>NumpadDecimal (.)</summary>
public static Code NumpadDecimal => new("NumpadDecimal");

/// <summary>NumpadAdd (+)</summary>
public static Code NumpadAdd => new("NumpadAdd");

/// <summary>NumpadSubtract (-)</summary>
public static Code NumpadSubtract => new("NumpadSubtract");

/// <summary>NumpadMultiply (*)</summary>
public static Code NumpadMultiply => new("NumpadMultiply");

/// <summary>NumpadDivide (/)</summary>
public static Code NumpadDivide => new("NumpadDivide");

/// <summary>NumpadEnter</summary>
public static Code NumpadEnter => new("NumpadEnter");

/// <summary>KanaMode (カタカナ/ひらがな/ローマ字)</summary>
public static Code KanaMode => new("KanaMode");

/// <summary>Convert (変換)</summary>
public static Code Convert => new("Convert");

/// <summary>NonConvert (無変換)</summary>
public static Code NonConvert => new("NonConvert");

}
9 changes: 9 additions & 0 deletions HotKeys2/Key.List.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ public partial struct Key
/// <summary>ScrollLock</summary>
public static Key ScrollLock => new("ScrollLock");

/// <summary>Pause</summary>
public static Key Pause => new("Pause");

/// <summary>Equal (=)</summary>
public static Key Equal => new("=");

Expand Down Expand Up @@ -410,6 +413,12 @@ public partial struct Key
/// <summary>Tilde (~)</summary>
public static Key Tilde => new("~");

/// <summary>Zenkaku (全角)</summary>
public static Key Zenkaku => new("Zenkaku");

/// <summary>Hankaku (半角)</summary>
public static Key Hankaku => new("Hankaku");

/// <summary>AudioVolumeMute</summary>
public static Key AudioVolumeMute => new("AudioVolumeMute ");

Expand Down
23 changes: 23 additions & 0 deletions HotKeys2/KeyList.csv
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,29 @@ Caret,^,,Caret (^)
VerticalLine,|,,Vertical Line (|)
Tilde,~,,Tilde (~)
,,,
Numpad0,,Numpad0,Numpad0
Numpad1,,Numpad1,Numpad1
Numpad2,,Numpad2,Numpad2
Numpad3,,Numpad3,Numpad3
Numpad4,,Numpad4,Numpad4
Numpad5,,Numpad5,Numpad5
Numpad6,,Numpad6,Numpad6
Numpad7,,Numpad7,Numpad7
Numpad8,,Numpad8,Numpad8
Numpad9,,Numpad9,Numpad9
NumpadDecimal,,NumpadDecimal,NumpadDecimal (.)
NumpadAdd,,NumpadAdd,NumpadAdd (+)
NumpadSubtract,,NumpadSubtract,NumpadSubtract (-)
NumpadMultiply,,NumpadMultiply,NumpadMultiply (*)
NumpadDivide,,NumpadDivide,NumpadDivide (/)
NumpadEnter,,NumpadEnter,NumpadEnter
,,,
KanaMode,,KanaMode,KanaMode (カタカナ/ひらがな/ローマ字)
Convert,,Convert,Convert (変換)
NonConvert,,NonConvert,NonConvert (無変換)
Zenkaku,Zenkaku,,Zenkaku (全角)
Hankaku,Hankaku,,Hankaku (半角)
,,,
AudioVolumeMute ,AudioVolumeMute ,,AudioVolumeMute
AudioVolumeDown,AudioVolumeDown,,AudioVolumeDown
AudioVolumeUp,AudioVolumeUp,,AudioVolumeUp
Expand Down

0 comments on commit 0299dcb

Please sign in to comment.