let all dialogs in $FG_ROOT/gui/dialogs be closed/canceled/dismissed on
Escape key; nasal generated dialogs will follow
This commit is contained in:
parent
47854e84e5
commit
9c49dccd5b
31 changed files with 86 additions and 17 deletions
|
@ -64,19 +64,21 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
<default>true</default>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<x>100</x>
|
||||
<y>0</y>
|
||||
<legend>Apply</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
|
@ -86,6 +88,7 @@
|
|||
<x>200</x>
|
||||
<y>0</y>
|
||||
<legend>Reset</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-update</command>
|
||||
</binding>
|
||||
|
@ -95,6 +98,8 @@
|
|||
<x>300</x>
|
||||
<y>0</y>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
<x>65</x>
|
||||
<y>10</y>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
|
@ -35,13 +37,14 @@
|
|||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
<default>true</default>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<x>125</x>
|
||||
<y>10</y>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -54,6 +54,7 @@
|
|||
<button>
|
||||
<legend>Close</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
|
||||
<text>
|
||||
<halign>left</halign>
|
||||
<label>AI Carrier:</label>
|
||||
<label>AI Carrier</label>
|
||||
<color>
|
||||
<red>0.5</red>
|
||||
<green>0.5</green>
|
||||
|
@ -125,6 +125,7 @@
|
|||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -19,11 +19,11 @@
|
|||
<legend>LEGEND</legend>
|
||||
<equal>true</equal>
|
||||
<property>PROPERTY</property>
|
||||
<keynum>-1</keynum>
|
||||
<keynum type="int">-1</keynum>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/sim/atc/transmission-num</property>
|
||||
<value type="int">TRANSMISSION NUMBER</value>
|
||||
<value type="int">-1</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
|
@ -36,6 +36,7 @@
|
|||
|
||||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
<button>
|
||||
<legend>Close</legend>
|
||||
<default>true</default>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -68,6 +68,7 @@
|
|||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -300,6 +300,8 @@
|
|||
|
||||
<button>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<keynum>27</keynum>
|
||||
<padding>10</padding>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
|
|
|
@ -269,19 +269,21 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
<default>true</default>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<x>100</x>
|
||||
<y>0</y>
|
||||
<legend>Apply</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
|
@ -291,6 +293,7 @@
|
|||
<x>200</x>
|
||||
<y>0</y>
|
||||
<legend>Reset</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-update</command>
|
||||
</binding>
|
||||
|
@ -300,6 +303,8 @@
|
|||
<x>300</x>
|
||||
<y>0</y>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -312,9 +312,11 @@
|
|||
<x>120</x>
|
||||
<y>10</y>
|
||||
<legend>Close</legend>
|
||||
<default>true</default>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
</PropertyList>
|
||||
</PropertyList>
|
||||
|
|
|
@ -128,19 +128,21 @@
|
|||
<x>50</x>
|
||||
<y>0</y>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
<default>true</default>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<x>150</x>
|
||||
<y>0</y>
|
||||
<legend>Apply</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
|
@ -150,6 +152,7 @@
|
|||
<x>250</x>
|
||||
<y>0</y>
|
||||
<legend>Reset</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-update</command>
|
||||
</binding>
|
||||
|
@ -159,6 +162,8 @@
|
|||
<x>350</x>
|
||||
<y>0</y>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -199,6 +199,8 @@
|
|||
<x>150</x>
|
||||
<y>10</y>
|
||||
<legend>Close</legend>
|
||||
<default>true</default>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding><command>dialog-close</command></binding>
|
||||
</button>
|
||||
<empty><stretch>true</stretch></empty>
|
||||
|
|
|
@ -108,6 +108,7 @@
|
|||
|
||||
<button>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
|
@ -128,12 +129,12 @@
|
|||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
<default>true</default>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -140,6 +140,7 @@
|
|||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -66,6 +66,7 @@
|
|||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -218,6 +218,7 @@
|
|||
<empty><stretch>true</stretch></empty>
|
||||
<button>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding><command>dialog-apply</command></binding>
|
||||
<binding><command>reinit</command><subsystem>logger</subsystem></binding>
|
||||
|
@ -227,6 +228,7 @@
|
|||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding><command>dialog-close</command></binding>
|
||||
</button>
|
||||
<empty><stretch>true</stretch></empty>
|
||||
|
|
|
@ -17,6 +17,7 @@ message and others.
|
|||
<button>
|
||||
<legend>BUTTONTEXT</legend>
|
||||
<default>true</default>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -77,6 +77,8 @@
|
|||
<button>
|
||||
<legend>OK</legend>
|
||||
<equal>true</equal>
|
||||
<default>true</default>
|
||||
<keynum>27</keynum>
|
||||
<binding><command>dialog-apply</command></binding>
|
||||
<binding><command>dialog-close</command></binding>
|
||||
</button>
|
||||
|
|
|
@ -463,19 +463,21 @@
|
|||
<x>105</x>
|
||||
<y>10</y>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
<default>true</default>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<x>205</x>
|
||||
<y>10</y>
|
||||
<legend>Apply</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
|
@ -485,6 +487,7 @@
|
|||
<x>305</x>
|
||||
<y>10</y>
|
||||
<legend>Reset</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-update</command>
|
||||
</binding>
|
||||
|
@ -494,6 +497,8 @@
|
|||
<x>405</x>
|
||||
<y>10</y>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
<button>
|
||||
<legend>Close</legend>
|
||||
<default>true</default>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
|
|
|
@ -74,6 +74,8 @@
|
|||
<empty><stretch>true</stretch></empty>
|
||||
<button>
|
||||
<legend>Replay</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
|
@ -83,11 +85,12 @@
|
|||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
<default>true</default>
|
||||
</button>
|
||||
<empty><stretch>true</stretch></empty>
|
||||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding><command>dialog-close</command></binding>
|
||||
</button>
|
||||
<empty><stretch>true</stretch></empty>
|
||||
|
|
|
@ -41,14 +41,15 @@
|
|||
|
||||
<button>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
<default>true</default>
|
||||
</button>
|
||||
</group>
|
||||
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
<empty><stretch>true</stretch></empty>
|
||||
<button>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
|
@ -76,7 +77,6 @@
|
|||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
<default>true</default>
|
||||
</button>
|
||||
<empty><stretch>true</stretch></empty>
|
||||
<button>
|
||||
|
@ -97,6 +97,7 @@
|
|||
<empty><stretch>true</stretch></empty>
|
||||
<button>
|
||||
<legend>Cancel</legend>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -64,19 +64,21 @@
|
|||
<x>10</x>
|
||||
<y>0</y>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
<default>true</default>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<x>60</x>
|
||||
<y>0</y>
|
||||
<legend>Apply</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
|
@ -86,6 +88,7 @@
|
|||
<x>140</x>
|
||||
<y>0</y>
|
||||
<legend>Reset</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-update</command>
|
||||
</binding>
|
||||
|
@ -95,6 +98,8 @@
|
|||
<x>220</x>
|
||||
<y>0</y>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -100,6 +100,8 @@
|
|||
<x>120</x>
|
||||
<y>10</y>
|
||||
<legend>Dismiss</legend>
|
||||
<default>true</default>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
@ -107,4 +109,4 @@
|
|||
|
||||
</group>
|
||||
|
||||
</PropertyList>
|
||||
</PropertyList>
|
||||
|
|
|
@ -791,6 +791,8 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
|
@ -801,13 +803,13 @@
|
|||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
<default>true</default>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<x>100</x>
|
||||
<y>0</y>
|
||||
<legend>Apply</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
|
@ -821,6 +823,7 @@
|
|||
<x>200</x>
|
||||
<y>0</y>
|
||||
<legend>Reset</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-update</command>
|
||||
</binding>
|
||||
|
@ -830,6 +833,8 @@
|
|||
<x>300</x>
|
||||
<y>0</y>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
<button>
|
||||
<legend>Close</legend>
|
||||
<default>true</default>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
|
|
|
@ -55,19 +55,21 @@
|
|||
<x>5</x>
|
||||
<y>10</y>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
<default>true</default>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<x>105</x>
|
||||
<y>10</y>
|
||||
<legend>Apply</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
|
@ -77,6 +79,7 @@
|
|||
<x>205</x>
|
||||
<y>10</y>
|
||||
<legend>Reset</legend>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-update</command>
|
||||
</binding>
|
||||
|
@ -86,6 +89,8 @@
|
|||
<x>305</x>
|
||||
<y>10</y>
|
||||
<legend>Cancel</legend>
|
||||
<equal>true</equal>
|
||||
<keynum>27</keynum>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
Loading…
Add table
Reference in a new issue