tdf#98924 In windows, change the keyboard layout per application
reint the key maps when in windows change the language for the application Change-Id: I71045386b4fe4d6db5572effa07a2f01ce79e74f Reviewed-on: https://gerrit.libreoffice.org/23556 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
This commit is contained in:
parent
812e640561
commit
0761614ccf
2 changed files with 5 additions and 0 deletions
|
@ -299,6 +299,8 @@ void SalData::initKeyCodeMap()
|
|||
if( nKey < 0xffff )\
|
||||
maVKMap[ nKey ] = b;
|
||||
|
||||
maVKMap.clear();
|
||||
|
||||
initKey( '+', KEY_ADD );
|
||||
initKey( '-', KEY_SUBTRACT );
|
||||
initKey( '*', KEY_MULTIPLY );
|
||||
|
|
|
@ -4917,6 +4917,9 @@ static void ImplHandleInputLangChange( HWND hWnd, WPARAM, LPARAM lParam )
|
|||
if( nLang != pFrame->mnInputLang )
|
||||
pFrame->CallCallback( SalEvent::InputLanguageChange, 0 );
|
||||
|
||||
// reinit spec. keys
|
||||
GetSalData()->initKeyCodeMap();
|
||||
|
||||
ImplSalYieldMutexRelease();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue