diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-08-12 20:09:07 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-08-12 20:09:07 +0100 |
| commit | a6b3c4bdc99301817092b8025cb217656afcf2bd (patch) | |
| tree | a6cdad97aec389bbb2d5f34307e24d376ac4db48 /ChatMultiConsole.c | |
| parent | 7a5122a60f5e28d0e59ae810ace607941e3ba068 (diff) | |
| parent | 3e1cbdfa4d40ec5e6fba35446501ba933ae1451e (diff) | |
Update upstream source from tag 'upstream/6.0.24.80+repack'
Update to upstream version '6.0.24.80+repack'
with Debian dir 9e943f8d36c6a64ae47eb54a3aa3ee85972ac107
Diffstat (limited to 'ChatMultiConsole.c')
| -rw-r--r-- | ChatMultiConsole.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/ChatMultiConsole.c b/ChatMultiConsole.c index bd38475..78308c6 100644 --- a/ChatMultiConsole.c +++ b/ChatMultiConsole.c @@ -983,7 +983,27 @@ 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
+
+ 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);
|
