|
@@ -650,6 +650,8 @@ VAR
|
|
menuMethod-: ControlMethod;
|
|
menuMethod-: ControlMethod;
|
|
quickBtnMethod-: ControlMethod;
|
|
quickBtnMethod-: ControlMethod;
|
|
|
|
|
|
|
|
+ blockToggle: BOOLEAN; (* If true, ALT+ENTER will not toggle fullscreen *)
|
|
|
|
+
|
|
PROCEDURE DrawAppWindows*(app: App);
|
|
PROCEDURE DrawAppWindows*(app: App);
|
|
VAR w, br: Control;
|
|
VAR w, br: Control;
|
|
BEGIN
|
|
BEGIN
|
|
@@ -1865,7 +1867,9 @@ BEGIN handled := FALSE; p := app.cur;
|
|
END;
|
|
END;
|
|
IF ~handled THEN
|
|
IF ~handled THEN
|
|
IF (key.code = G.kEnter) & (key.mod * G.mAlt # {}) THEN
|
|
IF (key.code = G.kEnter) & (key.mod * G.mAlt # {}) THEN
|
|
- T.ToggleFullscreen
|
|
|
|
|
|
+ IF blockToggle THEN blockToggle := FALSE
|
|
|
|
+ ELSE T.ToggleFullscreen; blockToggle := TRUE
|
|
|
|
+ END
|
|
ELSIF p # NIL THEN
|
|
ELSIF p # NIL THEN
|
|
IF p.do.keyDown # NIL THEN p.do.keyDown(p, key) END;
|
|
IF p.do.keyDown # NIL THEN p.do.keyDown(p, key) END;
|
|
IF (p.parent # NIL) & (p.parent IS Window) &
|
|
IF (p.parent # NIL) & (p.parent IS Window) &
|
|
@@ -1980,6 +1984,7 @@ BEGIN
|
|
END RunApp;
|
|
END RunApp;
|
|
|
|
|
|
BEGIN
|
|
BEGIN
|
|
|
|
+ blockToggle := FALSE;
|
|
NEW(controlMethod); InitControlMethod(controlMethod);
|
|
NEW(controlMethod); InitControlMethod(controlMethod);
|
|
NEW(buttonMethod); InitButtonMethod(buttonMethod);
|
|
NEW(buttonMethod); InitButtonMethod(buttonMethod);
|
|
NEW(winBtnMethod); InitWinBtnMethod(winBtnMethod);
|
|
NEW(winBtnMethod); InitWinBtnMethod(winBtnMethod);
|