From fbce91ad25c052810d36f4cb52da7a0920aa7cd4 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan <stuart_d_buchanan@yahoo.co.uk> Date: Mon, 15 Jan 2018 20:02:42 +0000 Subject: [PATCH] CLR double-click loads NavMap. --- Aircraft/Instruments-3d/FG1000/Nasal/MFDPageController.nas | 2 +- .../FG1000/Nasal/Surround/SurroundController.nas | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Aircraft/Instruments-3d/FG1000/Nasal/MFDPageController.nas b/Aircraft/Instruments-3d/FG1000/Nasal/MFDPageController.nas index d81449447..94959acea 100644 --- a/Aircraft/Instruments-3d/FG1000/Nasal/MFDPageController.nas +++ b/Aircraft/Instruments-3d/FG1000/Nasal/MFDPageController.nas @@ -55,7 +55,7 @@ handleComVolToggle : func (value) { return me.page.mfd.SurroundController.handle handleDTO : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; }, handleFPL : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; }, handleClear : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; }, -handleClearHold : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; }, +handleClearHold : func (value) { return me.page.mfd.SurroundController.handleClearHold(value); }, # By default, the FMS knobs will select a new page. handleFMSOuter : func (value) { return me.page.mfd.SurroundController.handleFMSOuter(value); }, diff --git a/Aircraft/Instruments-3d/FG1000/Nasal/Surround/SurroundController.nas b/Aircraft/Instruments-3d/FG1000/Nasal/Surround/SurroundController.nas index dc2741358..4db5bd687 100644 --- a/Aircraft/Instruments-3d/FG1000/Nasal/Surround/SurroundController.nas +++ b/Aircraft/Instruments-3d/FG1000/Nasal/Surround/SurroundController.nas @@ -19,8 +19,6 @@ var SurroundController = _nav2standby : 0.0, }; - - obj.RegisterWithEmesary(); return obj; }, @@ -320,6 +318,11 @@ var SurroundController = handleComVolToggle : func (value) { }, + # Holding the Clear button goes straight to the Navigation Map page. + handleClearHold : func (value) { + me._page.device.selectPage(me._page.getPage("NavigationMap")); + }, + # These methods are slightly unusual in that they are called by other # controllers when the CRSR is not active. Hence they aren't referenced # in the RegisterWithEmesary call below.