mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Restore keyboard mapping only if we actually changed it.
This commit is contained in:
parent
778f01bcf1
commit
22f579a59e
@ -59,7 +59,9 @@ AutoTypePlatformX11::AutoTypePlatformX11()
|
||||
void AutoTypePlatformX11::unload()
|
||||
{
|
||||
// Restore the KeyboardMapping to its original state.
|
||||
AddKeysym(NoSymbol);
|
||||
if (m_currentRemapKeysym != NoSymbol) {
|
||||
AddKeysym(NoSymbol);
|
||||
}
|
||||
|
||||
if (m_keysymTable) {
|
||||
XFree(m_keysymTable);
|
||||
|
Loading…
Reference in New Issue
Block a user