Skip to content

Commit

Permalink
Merge pull request #11973 from keymanapp/chore/windows/11925/deprecat…
Browse files Browse the repository at this point in the history
…e-qit-vshiftdown

chore(windows): remove QIT_VSHIFTDOWN QIT _VSHIFTUP
  • Loading branch information
rc-swag authored Aug 5, 2024
2 parents a6a49db + 4409972 commit 64efd2a
Show file tree
Hide file tree
Showing 8 changed files with 325 additions and 293 deletions.
590 changes: 316 additions & 274 deletions developer/src/samples/imsample/imdllref.rtf

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions developer/src/samples/imsample/imlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#define QIT_VKEYDOWN 0
#define QIT_VKEYUP 1
#define QIT_VSHIFTDOWN 2
#define QIT_VSHIFTUP 3
//#define QIT_VSHIFTDOWN 2 // deprecated see #11925
//#define QIT_VSHIFTUP 3
#define QIT_CHAR 4
#define QIT_DEADKEY 5
#define QIT_BELL 6
Expand Down
2 changes: 0 additions & 2 deletions developer/src/tike/debug/UfrmDebugStatus_Events.pas
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ procedure TfrmDebugStatus_Events.AddActionEvent(action: TDebugEventActionData);
begin
case action.ActionType of
KM_CORE_IT_EMIT_KEYSTROKE: AddItem('emit_keystroke', action);
// QIT_VSHIFTDOWN: AddItem('vshiftdown', action);
// QIT_VSHIFTUP: AddItem('vshiftup', action);
KM_CORE_IT_CHAR: AddItem('char', action);
KM_CORE_IT_MARKER: AddItem('marker', action);
KM_CORE_IT_ALERT: AddItem('alert', action);
Expand Down
4 changes: 0 additions & 4 deletions windows/src/engine/keyman32/appint/aiWin2000Unicode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,6 @@ BOOL AIWin2000Unicode::PostKeys()
pInputs[i++].ki.dwExtraInfo = 0; //KEYEVENT_EXTRAINFO_KEYMAN; // I4370 // I4378
}

break;
case QIT_VSHIFTDOWN:
break;
case QIT_VSHIFTUP:
break;
case QIT_CHAR:
pInputs[i].type = INPUT_KEYBOARD;
Expand Down
4 changes: 3 additions & 1 deletion windows/src/engine/keyman32/appint/appint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@

PWSTR decxstr(PWSTR p, PWSTR pStart);

// QIT_VSHIFTDOWN and QIT_VSHIFTUP deprecated see #11925
// Change to Deprecated to avoid array and index reshuffle
const LPSTR ItemTypes[8] = {
"QIT_VKEYDOWN", "QIT_VKEYUP", "QIT_VSHIFTDOWN", "QIT_VSHIFTUP",
"QIT_VKEYDOWN", "QIT_VKEYUP", "QIT_DEPRECATED", "QIT_DEPRECATED",
"QIT_CHAR", "QIT_DEADKEY", "QIT_BELL", "QIT_BACK" };

/* AppActionQueue */
Expand Down
4 changes: 2 additions & 2 deletions windows/src/engine/keyman32/appint/appint.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ typedef struct
// QueueAction ItemTypes
#define QIT_VKEYDOWN 0
#define QIT_VKEYUP 1
#define QIT_VSHIFTDOWN 2
#define QIT_VSHIFTUP 3
//#define QIT_VSHIFTDOWN 2 // deprecated see #11925
//#define QIT_VSHIFTUP 3 // deprecated see #11925
#define QIT_CHAR 4
#define QIT_DEADKEY 5
#define QIT_BELL 6
Expand Down
2 changes: 0 additions & 2 deletions windows/src/engine/keyman32/kmprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,8 @@ BOOL ProcessHook()
_td->app->GetQueueSize(), _td->app->IsLegacy(), _td->TIPFUpdateable);

if (_td->app->IsLegacy()) {
_td->app->QueueAction(QIT_VSHIFTDOWN, Globals::get_ShiftState());
_td->app->QueueAction(QIT_VKEYDOWN, _td->state.vkey);
_td->app->QueueAction(QIT_VKEYUP, _td->state.vkey);
_td->app->QueueAction(QIT_VSHIFTUP, Globals::get_ShiftState());
fOutputKeystroke = FALSE;
}
else if (!_td->TIPFUpdateable) {
Expand Down
8 changes: 2 additions & 6 deletions windows/src/engine/testhost/testhost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ typedef struct
// QueueAction ItemTypes
#define QIT_VKEYDOWN 0
#define QIT_VKEYUP 1
#define QIT_VSHIFTDOWN 2
#define QIT_VSHIFTUP 3
//#define QIT_VSHIFTDOWN 2 // deprecated see #11925
//#define QIT_VSHIFTUP 3 // deprecated see #11925
#define QIT_CHAR 4
#define QIT_DEADKEY 5
#define QIT_BELL 6
Expand Down Expand Up @@ -268,10 +268,6 @@ BOOL WINAPI PostKeyCallback(APPACTIONQUEUEITEM* Queue, int QueueSize) {
//pInputs[i].ki.dwFlags = KEYEVENTF_KEYUP | ((Queue[n].dwData & QVK_EXTENDED) ? KEYEVENTF_EXTENDEDKEY : 0); // I3438
}
break;
case QIT_VSHIFTDOWN:
break;
case QIT_VSHIFTUP:
break;
case QIT_CHAR:
// TODO: surrogate pairs
PostMessage(hWndEdit, WM_CHAR, (WORD)Queue[n].dwData, 0);
Expand Down

0 comments on commit 64efd2a

Please sign in to comment.