Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
be0c84f
chore(common): use new namespace km_vk for constants(2.)
SabineSIL Jul 15, 2025
b4d76dc
chore(common): use new namespace km_vk in charToKeyConversion and mac…
SabineSIL Jul 15, 2025
0a43883
chore(common): use new namespace km_vk in linux/mcompile/keymap/keymap.h
SabineSIL Jul 15, 2025
49d5270
chore(common): use new namespace km_vk in kmx_processevent.cpp, Compi…
SabineSIL Jul 16, 2025
a1465c0
chore(common): missing semicolon in savekeyboard.cpp
SabineSIL Jul 16, 2025
ed8e248
chore(common): remove VK_DECIMAL from keyman_vkey.h
SabineSIL Jul 16, 2025
9a8e052
chore(common): use new namespace km_vk in imsample.cpp
SabineSIL Jul 16, 2025
e2ed502
chore(common): use new namespace km_vk in kmdecomp
SabineSIL Jul 17, 2025
a0a3305
chore(common): include new file in kmdecomp/pch.h
SabineSIL Jul 17, 2025
c04ef63
chore(common): undo changes for kmdecomp
SabineSIL Jul 17, 2025
4c40421
Merge branch 'chore/developer/scatteredCode/cleanup_VKeys' of https:/…
SabineSIL Jul 17, 2025
eb2045b
chore(common): merge branch undo
SabineSIL Jul 17, 2025
50204ab
chore(common): disable VK_DECIMAL again in keyman_vkeys.h
SabineSIL Jul 17, 2025
0e5c94c
chore(common): add JPathOrMatcher for use of fast-xml-parser 5.8
SabineSIL Jul 2, 2026
9ca40fa
Merge branch 'master' into chore/developer/scatteredCode/cleanup_VKeys
SabineSIL Jul 2, 2026
5ab4b10
chore(common): dummy change
SabineSIL Jul 2, 2026
490eb93
chore(common): change path for #include /keymanversion.h
SabineSIL Jul 2, 2026
a19e452
chore(common): change use of #includes
SabineSIL Jul 2, 2026
62d7f79
chore(common): rename and use keyman_vkey.h-> km_vkey.h
SabineSIL Jul 2, 2026
68fa9b9
chore(common): rename namespace km_vk to vkey and use under km (km::v…
SabineSIL Jul 2, 2026
b780ecc
chore(common): edit value of VK_DECIMAL
SabineSIL Jul 2, 2026
a8f509d
chore(common): include kmx_processevent.h
SabineSIL Jul 2, 2026
1d61654
chore(common): include kmx_processevent.h from core
SabineSIL Jul 2, 2026
7d621a8
chore(common): include km_vkey.h from common
SabineSIL Jul 2, 2026
c38fa4e
chore(common): include km_vkey.h from common
SabineSIL Jul 2, 2026
4d229d1
Merge branch 'chore/developer/scatteredCode/cleanup_VKeys' of https:/…
SabineSIL Jul 2, 2026
5bfff67
Merge branch 'master' into chore/developer/scatteredCode/cleanup_VKeys
SabineSIL Jul 2, 2026
953f687
chore(common): comment for VK_DECIMAL, remove VK__MAX; use windows.h …
SabineSIL Jul 2, 2026
7f1f344
Merge branch 'chore/developer/scatteredCode/cleanup_VKeys' of https:/…
SabineSIL Aug 7, 2026
9854206
chore(common): use shorter input paths for km_vkey.h and #include als…
SabineSIL Aug 7, 2026
540f8c5
Merge branch 'master' into chore/developer/scatteredCode/cleanup_VKeys
SabineSIL Aug 7, 2026
dde35c8
chore(common): undo last changes
SabineSIL Aug 7, 2026
22a04c1
Merge branch 'chore/developer/scatteredCode/cleanup_VKeys' of https:/…
SabineSIL Aug 7, 2026
dfb274a
chore(common): use shorter input paths
SabineSIL Aug 7, 2026
e69204c
chore(common): use shorter input paths
SabineSIL Aug 7, 2026
f4c8bca
Merge branch 'chore/developer/scatteredCode/cleanup_VKeys' of https:/…
SabineSIL Aug 7, 2026
279820b
chore(common): include km_vkey.h
SabineSIL Aug 7, 2026
0b7af5b
chore(common): include km_vkey.h
SabineSIL Aug 7, 2026
1e09783
Merge branch 'chore/developer/scatteredCode/cleanup_VKeys' of https:/…
SabineSIL Aug 7, 2026
97a2e81
chore(common): use km_vkey.h on mac
SabineSIL Aug 7, 2026
cbe5d40
chore(common): undo use km_vkey.h on mac
SabineSIL Aug 7, 2026
a2bf976
chore(common): remove commented old #defines; in some files remove pa…
SabineSIL Aug 11, 2026
10aceea
Merge branch 'master' into chore/developer/scatteredCode/cleanup_VKeys
SabineSIL Aug 11, 2026
4e4e37e
chore(common): add VK_DELETE to km_vkey.h
SabineSIL Aug 11, 2026
b1f05b5
Merge branch 'chore/developer/scatteredCode/cleanup_VKeys' of https:/…
SabineSIL Aug 11, 2026
a621106
chore(common): remove namespace km::vkey
SabineSIL Aug 12, 2026
fab3407
fix(developer): remove duplicate function definition (gs)
SabineSIL Aug 12, 2026
1d606cc
fix(developer): remove more duplicate function definition (gs)
SabineSIL Aug 12, 2026
4cc6e35
Merge branch 'master' into fix/developer/15503-define-gs-twice
SabineSIL Aug 12, 2026
37771ff
fix(developer): unchange khmer_angkor.js
SabineSIL Aug 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 155 additions & 0 deletions common/include/km_vkey.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
/*
* Keyman is copyright (C) SIL International. MIT License.
* Create Date: 2 Jul 2026
* Author: Sabine Schmitt
* VKCodes for keyman
*/

#pragma once

#define VK_LBUTTON 0x01
#define VK_RBUTTON 0x02
#define VK_CANCEL 0x03
#define VK_MBUTTON 0x04

#define VK_BACKSPACE 0x08
#define VK_BACK 0x08
#define VK_TAB 0x09

#define VK_CLEAR 0x0C
#define VK_RETURN 0x0D
#define VK_ENTER 0x0D

#define VK_SHIFT 0x10
#define VK_CONTROL 0x11
#define VK_MENU 0x12
#define VK_PAUSE 0x13
#define VK_CAPITAL 0x14
#define VK_KANA 0x15
#define VK_HANGEUL 0x15
#define VK_HANGUL 0x15
#define VK_IME_ON 0x16
#define VK_JUNJA 0x17
#define VK_FINAL 0x18
#define VK_HANJA 0x19
#define VK_KANJI 0x19
#define VK_IME_OFF 0x1A
#define VK_ESCAPE 0x1B
#define VK_CONVERT 0x1C
#define VK_NONCONVERT 0x1D
#define VK_ACCEPT 0x1E
#define VK_MODECHANGE 0x1F
#define VK_SPACE 0x20
#define VK_PRIOR 0x21
#define VK_NEXT 0x22
#define VK_END 0x23
#define VK_HOME 0x24
#define VK_LEFT 0x25
#define VK_UP 0x26
#define VK_RIGHT 0x27
#define VK_DOWN 0x28
#define VK_SELECT 0x29
#define VK_PRINT 0x2A
#define VK_EXECUTE 0x2B
#define VK_SNAPSHOT 0x2C
#define VK_INSERT 0x2D
#define VK_DELETE 0x2E

#define VK_KEY_0 0x30
#define VK_KEY_1 0x31
#define VK_KEY_2 0x32
#define VK_KEY_3 0x33
#define VK_KEY_4 0x34
#define VK_KEY_5 0x35
#define VK_KEY_6 0x36
#define VK_KEY_7 0x37
#define VK_KEY_8 0x38
#define VK_KEY_9 0x39

#define VK_KEY_A 0x41
#define VK_KEY_B 0x42
#define VK_KEY_C 0x43
#define VK_KEY_D 0x44
#define VK_KEY_E 0x45
#define VK_KEY_F 0x46
#define VK_KEY_G 0x47
#define VK_KEY_H 0x48
#define VK_KEY_I 0x49
#define VK_KEY_J 0x4A
#define VK_KEY_K 0x4B
#define VK_KEY_L 0x4C
#define VK_KEY_M 0x4D
#define VK_KEY_N 0x4E
#define VK_KEY_O 0x4F
#define VK_KEY_P 0x50
#define VK_KEY_Q 0x51
#define VK_KEY_R 0x52
#define VK_KEY_S 0x53
#define VK_KEY_T 0x54
#define VK_KEY_U 0x55
#define VK_KEY_V 0x56
#define VK_KEY_W 0x57
#define VK_KEY_X 0x58
#define VK_KEY_Y 0x59
#define VK_KEY_Z 0x5A

#define VK_NUMPAD0 0x60
#define VK_NUMPAD1 0x61
#define VK_NUMPAD2 0x62
#define VK_NUMPAD3 0x63
#define VK_NUMPAD4 0x64
#define VK_NUMPAD5 0x65
#define VK_NUMPAD6 0x66
#define VK_NUMPAD7 0x67
#define VK_NUMPAD8 0x68
#define VK_NUMPAD9 0x69
#define VK_NUMPAD_MULTIPLY 0x6A
#define VK_NUMPAD_ADD 0x6B

#define VK_NUMPAD_SUBTRACT 0x6D
#define VK_NUMPAD_DECIMAL 0x6E
#define VK_DECIMAL 0x6E
#define VK_NUMPAD_DIVIDE 0x6F
#define VK_DIVIDE 0x6F

#define VK_NUMLOCK 0x90

#define VK_LSHIFT 0xA0
#define VK_RSHIFT 0xA1
#define VK_LCONTROL 0xA2
#define VK_RCONTROL 0xA3
#define VK_LMENU 0xA4
#define VK_RMENU 0xA5

#define VK_OEM_1 0xBA
#define VK_COLON 0xBA
#define VK_SEMICOLON 0xBA
#define VK_OEM_PLUS 0xBB
#define VK_EQUAL 0xBB
#define VK_OEM_COMMA 0xBC
#define VK_COMMA 0xBC
#define VK_OEM_MINUS 0xBD
#define VK_HYPHEN 0xBD
#define VK_MINUS 0xBD
#define VK_OEM_PERIOD 0xBE
#define VK_PERIOD 0xBE
#define VK_OEM_2 0xBF
#define VK_SLASH 0xBF
#define VK_OEM_3 0xC0
#define VK_ACCENT 0xC0
#define VK_GRAVE 0xC0
#define VK_LEFT_BRACKET 0xDB
#define VK_LBRKT 0xDB
#define VK_OEM_4 0xDB
#define VK_BACKSLASH 0xDC
#define VK_BKSLASH 0xDC
#define VK_OEM_5 0xDC
#define VK_RIGHT_BRACKET 0xDD
#define VK_RBRKT 0xDD
#define VK_OEM_6 0xDD
#define VK_QUOTE 0xDE
#define VK_OEM_7 0xDE
#define VK_xDF 0xDF
#define VK_OEM_8 0xDF
#define VK_OEM_102 0xE2
#define VK_OEM_CLEAR 0xFE
5 changes: 1 addition & 4 deletions common/test/keyboards/baseline/k_0000___null_keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ function Keyboard_k_0000___null_keyboard()
this.KMBM=0x0000;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
5 changes: 1 addition & 4 deletions common/test/keyboards/baseline/k_0001___nul.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ function Keyboard_k_0001___nul()
this.KMBM=0x0000;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ function Keyboard_k_0002___nul_with_initial_context()
this.KMBM=0x0000;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
5 changes: 1 addition & 4 deletions common/test/keyboards/baseline/k_0003___nul_testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ function Keyboard_k_0003___nul_testing()
this.KMBM=0x0000;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
3 changes: 0 additions & 3 deletions common/test/keyboards/baseline/k_0004___space_mnemonic_kbd.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ function Keyboard_k_0004___space_mnemonic_kbd()
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.g_main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
if(k.KKM(e, 0x4000, 0x20)) {
Expand Down
5 changes: 1 addition & 4 deletions common/test/keyboards/baseline/k_0005___beep.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ function Keyboard_k_0005___beep()
this.KMBM=0 /* 0x0000 */;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ function Keyboard_k_0100___basic_input_unicodei()
this.KMBM=0x0010;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ function Keyboard_k_0101___basic_input_unicode()
this.KMBM=0x0010;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ function Keyboard_k_0102___basic_input__shift_2_()
this.KMBM=0x0010;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ function Keyboard_k_0103___vkey_input__shift_ctrl_()
this.KMBM=0x0030;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ function Keyboard_k_0104___vkey_input__ctrl_alt_()
this.KMBM=0x0060;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ function Keyboard_k_0105___vkey_input__ctrl_alt_2_()
this.KMBM=0x0060;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
5 changes: 1 addition & 4 deletions common/test/keyboards/baseline/k_0106___smp.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ function Keyboard_k_0106___smp()
this.KS=1;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
5 changes: 1 addition & 4 deletions common/test/keyboards/baseline/k_0107___punctkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ function Keyboard_k_0107___punctkeys()
this.KMBM=0x0000;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
3 changes: 0 additions & 3 deletions common/test/keyboards/baseline/k_0200___ralt.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ function Keyboard_k_0200___ralt()
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.g_main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
if(k.KKM(e, 0x4000, 0x41)) {
Expand Down
3 changes: 0 additions & 3 deletions common/test/keyboards/baseline/k_0201___ralt_2.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ function Keyboard_k_0201___ralt_2()
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.g_main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
if(k.KKM(e, 0x4000, 0x41)) {
Expand Down
3 changes: 0 additions & 3 deletions common/test/keyboards/baseline/k_0202___alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ function Keyboard_k_0202___alt()
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.g_main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
if(k.KKM(e, 0x4040, 0x41)) {
Expand Down
5 changes: 1 addition & 4 deletions common/test/keyboards/baseline/k_0203___generic_ctrlalt.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ function Keyboard_k_0203___generic_ctrlalt()
this.KMBM=0x0060;
this.KVS=[];
this.gs=function(t,e) {
return this.g_Main_0(t,e);
};
this.gs=function(t,e) {
return this.g_Main_0(t,e);
return this.g_main_0(t,e);
};
this.g_Main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
Expand Down
3 changes: 0 additions & 3 deletions common/test/keyboards/baseline/k_0300___deadkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ function Keyboard_k_0300___deadkeys()
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.g_main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
if(k.KKM(e, 0x4010, 0x36)) {
Expand Down
3 changes: 0 additions & 3 deletions common/test/keyboards/baseline/k_0301___multiple_deadkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ function Keyboard_k_0301___multiple_deadkeys()
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.g_main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
if(k.KKM(e, 0x4000, 0x31)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ function Keyboard_k_0302___deadkeys_and_backspace()
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.gs=function(t,e) {
return this.g_main_0(t,e);
};
this.g_main_0=function(t,e) {
var k=KeymanWeb,r=0,m=0;
if(k.KKM(e, 0x4000, 0x08)) {
Expand Down
Loading