[dasher: 198/217] The rest of cleanup
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher: 198/217] The rest of cleanup
- Date: Sat, 27 Feb 2016 12:16:58 +0000 (UTC)
commit ae51fd260c13f194e4ac03d3ff48198f4202bf27
Author: Ada Majorek <amajorek google com>
Date: Mon Feb 1 11:17:19 2016 -0800
The rest of cleanup
Src/Win32/Widgets/Edit.cpp | 23 -----------------------
1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/Src/Win32/Widgets/Edit.cpp b/Src/Win32/Widgets/Edit.cpp
index d080fa9..4cd5c34 100644
--- a/Src/Win32/Widgets/Edit.cpp
+++ b/Src/Win32/Widgets/Edit.cpp
@@ -319,29 +319,6 @@ void CEdit::output(const std::string &sText) {
SendInput(1, fakekey, sizeof(INPUT));
}
}
-#else
- if(DisplayText[0] == 0xd && DisplayText[1] == 0xa) {
- // Newline, so we want to fake an enter
- SetFocus(targetwindow);
- keybd_event(VK_RETURN, 0, NULL, NULL);
- keybd_event(VK_RETURN, 0, KEYEVENTF_KEYUP, NULL);
- }
- Tstring character;
- WinUTF8::UTF8string_to_wstring(DisplayText, &character, 1252);
- TCHAR test = character[0];
- SHORT outputvk = VkKeyScan(char (character[0]));
- SetFocus(targetwindow);
- if(HIBYTE(outputvk) && 6) {
- keybd_event(VK_SHIFT, 0, NULL, NULL);
- keybd_event(LOBYTE(outputvk), 0, NULL, NULL);
- keybd_event(LOBYTE(outputvk), 0, KEYEVENTF_KEYUP, NULL);
- keybd_event(VK_SHIFT, 0, KEYEVENTF_KEYUP, NULL);
- }
- else {
- keybd_event(LOBYTE(outputvk), 0, NULL, NULL);
- keybd_event(LOBYTE(outputvk), 0, KEYEVENTF_KEYUP, NULL);
- }
-#endif
}
m_Output += sText;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]