Fix T42426. Add support for UK "`" key.
Because key == OEM_8, there no clear conversion for different keyboard layouts. Also, we must map key to GhostKey for shortcuts.
This commit is contained in:
parent
29c2b70a2c
commit
dc199369d1
Notes:
blender-bot
2023-02-14 09:53:02 +01:00
Referenced by issue #42426, Backtick ( ` ) keyboard key not detected anywhere in blender
|
@ -508,6 +508,7 @@ GHOST_TKey GHOST_SystemWin32::hardKey(GHOST_IWindow *window, RAWINPUT const &raw
|
|||
|
||||
//! note: this function can be extended to include other exotic cases as they arise.
|
||||
// This function was added in response to bug [#25715]
|
||||
// This is going to be a long list [T42426]
|
||||
GHOST_TKey GHOST_SystemWin32::processSpecialKey(GHOST_IWindow *window, short vKey, short scanCode) const
|
||||
{
|
||||
GHOST_TKey key = GHOST_kKeyUnknown;
|
||||
|
@ -515,6 +516,10 @@ GHOST_TKey GHOST_SystemWin32::processSpecialKey(GHOST_IWindow *window, short vKe
|
|||
case LANG_FRENCH:
|
||||
if (vKey == VK_OEM_8) key = GHOST_kKeyF13; // oem key; used purely for shortcuts .
|
||||
break;
|
||||
case LANG_ENGLISH:
|
||||
if (SUBLANGID(m_langId) == SUBLANG_ENGLISH_UK && vKey == VK_OEM_8) // "`¬"
|
||||
key = GHOST_kKeyAccentGrave;
|
||||
break;
|
||||
}
|
||||
|
||||
return key;
|
||||
|
|
Loading…
Reference in New Issue