diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-08-12 20:09:04 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-08-12 20:09:04 +0100 |
| commit | 3e1cbdfa4d40ec5e6fba35446501ba933ae1451e (patch) | |
| tree | 47462abffd799dbbd666d4c454daf8a0ff2c4eed /ChatMultiConsole.c | |
| parent | 1f40ff4a07793ecfa679a1384053451c4f3f536f (diff) | |
New upstream version 6.0.24.80+repackupstream/6.0.24.80+repack
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);
|
