mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 16:29:44 -05: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