diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-08-17 22:31:27 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-08-17 22:31:27 +0100 |
| commit | e925e16114a18c7a0db4c016c176a149f5f67ab3 (patch) | |
| tree | f7e3ceca5c9120904025448ce923b47c926d5b53 /BPQTermMDI.c | |
| parent | 3e1cbdfa4d40ec5e6fba35446501ba933ae1451e (diff) | |
New upstream version 6.0.24.82+repackupstream/6.0.24.82+repack
Diffstat (limited to 'BPQTermMDI.c')
| -rw-r--r-- | BPQTermMDI.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/BPQTermMDI.c b/BPQTermMDI.c index afdb4f5..9f9ba44 100644 --- a/BPQTermMDI.c +++ b/BPQTermMDI.c @@ -2973,6 +2973,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;
+ }
}
|
