diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-09-04 22:52:12 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-09-04 22:52:12 +0100 |
| commit | 7c796758d1b65d4d7585c90ba71b1fb339a4d283 (patch) | |
| tree | 232547ccf785f9413d039522d15b0cbfa5bf1618 /ChatMultiConsole.c | |
| parent | fa3201d982100b5168f155f7c544f4fc902079d7 (diff) | |
New upstream version 6.0.25.1+repackupstream/6.0.25.1+repack
Diffstat (limited to 'ChatMultiConsole.c')
| -rw-r--r-- | ChatMultiConsole.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/ChatMultiConsole.c b/ChatMultiConsole.c index bd38475..cc70f18 100644 --- a/ChatMultiConsole.c +++ b/ChatMultiConsole.c @@ -983,7 +983,30 @@ LRESULT APIENTRY InputProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) return 0;
}
-
+
+ if (wParam == 0x7) // BEL (Ctrl/G)
+ {
+ // Get buffer, append 07 and write back
+
+ Cinfo->kbptr = SendMessage(Cinfo->hwndInput, WM_GETTEXT, INPUTLEN-1,
+ (LPARAM) (LPCSTR)Cinfo->kbbuf);
+
+
+ Cinfo->kbbuf[Cinfo->kbptr++] = 7;
+ Cinfo->kbbuf[Cinfo->kbptr] = 0;
+
+ SendMessage(Cinfo->hwndInput,WM_SETTEXT,0,(LPARAM)(LPCSTR) Cinfo->kbbuf);
+
+ // Send cursor right
+
+ for (i = 0; i < strlen(Cinfo->kbbuf); i++)
+ {
+ SendMessage(Cinfo->hwndInput, WM_KEYDOWN, VK_RIGHT, 0);
+ SendMessage(Cinfo->hwndInput, WM_KEYUP, VK_RIGHT, 0);
+ }
+
+ return 0;
+ }
}
return CallWindowProc(Cinfo->wpOrigInputProc, hwnd, uMsg, wParam, lParam);
|
