summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-07-06 17:00:26 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-07-06 17:00:26 +0200
commit048e5cac609296e9d955a04860a33e05d1958772 (patch)
tree96f83418afe01e0fb800934c2a4859067c6b9787 /src/corelib
parent7bfd02bf876507f09fcd1c986c889706cbc52653 (diff)
downloadfpGUI-048e5cac609296e9d955a04860a33e05d1958772.tar.xz
Numlock gets treated as a ShitfState in X11. Now disabled.
See the comments in the code. This fixes lots of code that checks for the ShiftState values in key press events.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/x11/fpg_x11.pas7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/corelib/x11/fpg_x11.pas b/src/corelib/x11/fpg_x11.pas
index 79f83e6e..a8479cb2 100644
--- a/src/corelib/x11/fpg_x11.pas
+++ b/src/corelib/x11/fpg_x11.pas
@@ -763,8 +763,11 @@ begin
Include(Result, ssCtrl);
if (AState and Mod1Mask) <> 0 then
Include(Result, ssAlt);
- if (AState and Mod2Mask) <> 0 then
- Include(Result, ssNum);
+ { Numlock is often permanently enabled after booting, so this always gives
+ use the incorrect ShiftState. So we simply stop checking ssNum as part
+ of the ShiftState. }
+// if (AState and Mod2Mask) <> 0 then
+// Include(Result, ssNum);
{ NOTE: Mod3Mask is normally unused for some reason }
if (AState and Mod4Mask) <> 0 then { aka "Windows key" }
Include(Result, ssSuper);