There used to be a hard-coded F6 binding in input.cxx. Replace it
with a tiny bit of Nasal.
This commit is contained in:
parent
db4056f70d
commit
15401619e5
1 changed files with 10 additions and 0 deletions
10
keyboard.xml
10
keyboard.xml
|
@ -907,6 +907,16 @@ calculated by adding 256 to the GLUT key value in glut.h.
|
||||||
|
|
||||||
<key n="262">
|
<key n="262">
|
||||||
<name>F6</name>
|
<name>F6</name>
|
||||||
|
<binding>
|
||||||
|
<desc>Toggle Autopilot Heading Mode</desc>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>
|
||||||
|
prop = "/autopilot/locks/heading";
|
||||||
|
curr = getprop(prop);
|
||||||
|
if(curr == "true-heading-hold") { setprop(prop, ""); }
|
||||||
|
else { setprop(prop, "true-heading-hold"); }
|
||||||
|
</script>
|
||||||
|
</binding>
|
||||||
<mod-shift>
|
<mod-shift>
|
||||||
<binding>
|
<binding>
|
||||||
<desc>Scroll panel up</desc>
|
<desc>Scroll panel up</desc>
|
||||||
|
|
Loading…
Add table
Reference in a new issue