LCL-GTK2: Refactor, add support for input method blacklist. Issue #30863, patch from AlexeyT.

git-svn-id: trunk@54130 -
This commit is contained in:
juha 2017-02-09 09:48:37 +00:00
parent 4edb91db4d
commit d5791ad833

View File

@ -2198,9 +2198,16 @@ var
end;
function BlackListIMModule: boolean;
const
cBlackList = 'scim-bridge';
//to fix issue with duplicated chars:
//cBlackList = 'scim-bridge,scim,xim';
var
sVar: string;
begin
{$IFDEF UNIX}
Result := g_getenv('GTK_IM_MODULE') = 'scim-bridge';
sVar := g_getenv('GTK_IM_MODULE');
Result := Pos(','+sVar+',', ','+cBlackList+',')>0;
{$ELSE}
Result := False;
{$ENDIF}