File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -227,3 +227,4 @@ RoGetAgileReference
227227IQueryInfo
228228QITIPF_FLAGS
229229GetKeyboardState
230+ MapVirtualKey
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ private static string GetKeyCharacter(Forms.Keys key)
382382 var virtualKey = ( uint ) key ;
383383
384384 // Map the virtual key to a scan code
385- var scanCode = Win32PInvoke . MapVirtualKey ( virtualKey , 0 ) ;
385+ var scanCode = PInvoke . MapVirtualKey ( virtualKey , 0 ) ;
386386
387387 // Get the active keyboard layout
388388 var keyboardLayout = Win32PInvoke . GetKeyboardLayout ( 0 ) ;
Original file line number Diff line number Diff line change @@ -234,12 +234,6 @@ public static extern IntPtr GetKeyboardLayout
234234 uint idThread
235235 ) ;
236236
237- [ DllImport ( "user32.dll" ) ]
238- public static extern uint MapVirtualKey (
239- uint code ,
240- uint mapType
241- ) ;
242-
243237 [ DllImport ( "user32.dll" ) ]
244238 public static extern bool TranslateMessage (
245239 ref MSG lpMsg
You can’t perform that action at this time.
0 commit comments