summaryrefslogtreecommitdiff
path: root/src/VBox/Main/src-client/KeyboardImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Main/src-client/KeyboardImpl.cpp')
-rw-r--r--src/VBox/Main/src-client/KeyboardImpl.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/VBox/Main/src-client/KeyboardImpl.cpp b/src/VBox/Main/src-client/KeyboardImpl.cpp
index f2cddae87..f90414799 100644
--- a/src/VBox/Main/src-client/KeyboardImpl.cpp
+++ b/src/VBox/Main/src-client/KeyboardImpl.cpp
@@ -1,4 +1,4 @@
-/* $Id: KeyboardImpl.cpp $ */
+/* $Id: KeyboardImpl.cpp 36724 2011-04-19 08:57:30Z vboxsync $ */
/** @file
* VirtualBox COM class implementation
*/
@@ -81,12 +81,13 @@ HRESULT Keyboard::FinalConstruct()
RT_ZERO(mpDrv);
mpVMMDev = NULL;
mfVMMDevInited = false;
- return S_OK;
+ return BaseFinalConstruct();
}
void Keyboard::FinalRelease()
{
uninit();
+ BaseFinalRelease();
}
// public methods
@@ -239,14 +240,16 @@ STDMETHODIMP Keyboard::PutScancodes(ComSafeArrayIn(LONG, scancodes),
*/
STDMETHODIMP Keyboard::PutCAD()
{
- static com::SafeArray<LONG> cadSequence(6);
+ static com::SafeArray<LONG> cadSequence(8);
cadSequence[0] = 0x1d; // Ctrl down
cadSequence[1] = 0x38; // Alt down
- cadSequence[2] = 0x53; // Del down
- cadSequence[3] = 0xd3; // Del up
- cadSequence[4] = 0xb8; // Alt up
- cadSequence[5] = 0x9d; // Ctrl up
+ cadSequence[2] = 0xe0; // Del down 1
+ cadSequence[3] = 0x53; // Del down 2
+ cadSequence[4] = 0xe0; // Del up 1
+ cadSequence[5] = 0xd3; // Del up 2
+ cadSequence[6] = 0xb8; // Alt up
+ cadSequence[7] = 0x9d; // Ctrl up
return PutScancodes(ComSafeArrayAsInParam(cadSequence), NULL);
}