diff --git a/source/uCEFLinuxFunctions.pas b/source/uCEFLinuxFunctions.pas
index baee0015..60c1d3e2 100644
--- a/source/uCEFLinuxFunctions.pas
+++ b/source/uCEFLinuxFunctions.pas
@@ -24,7 +24,7 @@ uses
 {$IFDEF LINUX}
 procedure GdkEventKeyToCEFKeyEvent(GdkEvent: PGdkEventKey; var aCEFKeyEvent : TCEFKeyEvent);
 function  KeyboardCodeFromXKeysym(keysym : uint32) : integer;
-{$IFDEF LCLGTK2 or (LCLGTK3 and (LCL_FULLVERSION<3000000))}
+{$IFDEF LINUXFMX or LCLGTK2 or (LCLGTK3 and (LCL_FULLVERSION<3000000))}
 function  GetCefStateModifiers(state : uint32) : integer;
 {$ENDIF}
 {$IFDEF LCLGTK3 and (LCL_FULLVERSION>3000000)}
@@ -453,7 +453,7 @@ begin
   end;
 end;
 
-{$IFDEF LCLGTK2 or (LCLGTK3 and (LCL_FULLVERSION<3000000))}
+{$IFDEF LINUXFMX or LCLGTK2 or (LCLGTK3 and (LCL_FULLVERSION<3000000))}
 function GetCefStateModifiers(state : uint32) : integer;
 begin
   Result := EVENTFLAG_NONE;
diff --git a/update_CEF4Delphi.json b/update_CEF4Delphi.json
index 7bd13d90..82ee3a32 100644
--- a/update_CEF4Delphi.json
+++ b/update_CEF4Delphi.json
@@ -2,7 +2,7 @@
   "UpdateLazPackages" : [
     {
       "ForceNotify" : true,
-      "InternalVersion" : 595,
+      "InternalVersion" : 596,
       "Name" : "cef4delphi_lazarus.lpk",
       "Version" : "124.3.7"
     }