Menu

#766 Shortcut Key For Map

3.0
Fixed
nobody
2013-11-07
2012-05-07
Anonymous
No

Originally created by: Luke... (code.google.com)@gmail.com
Originally owned by: zakalawe@mac.com

Would it be possible to get a shortcut key for the map in flightgear like (F9) or something like that :) It would be great

Discussion

  • Anonymous

    Anonymous - 2012-05-07

    Originally posted by: emili... (code.google.com)@gmail.com

    (No comment was entered for this change.)

    Labels: Type-FeatureRequest Inputs

     
  • Anonymous

    Anonymous - 2012-05-07

    Originally posted by: bre... (code.google.com)@gmail.com

    Indeed, map dialog is one of the very few dialogs deserving an own shortcut.
    CCing Zakalawe.

    Labels: GUI
    Cc: zakalawe@mac.com

     
  • Anonymous

    Anonymous - 2012-05-07

    Originally posted by: zakalawe@mac.com

    I believe the usually issue here is lack of 'free' keybindings.

     
  • Anonymous

    Anonymous - 2012-05-07

    Originally posted by: Luke... (code.google.com)@gmail.com

    Is adding shortcuts hard? also if I knew how to do it I would love add the shortcut to the map : )

     
  • Anonymous

    Anonymous - 2012-05-09

    Originally posted by: wonco...@googlemail.com

    Adding new keyboard bindings isn't hard - it just involves editing a plain text (XML) file using a conventional text (or XML) editor.

    You can check out $FG_ROOT/preferences.xml: https://gitorious.org/fg/fgdata/blobs/master/preferences.xml#line965

    As you can see, it includes $FG_ROOT/keyboard.xml, this is he file you want to edit: https://gitorious.org/fg/fgdata/blobs/master/keyboard.xml

    To add a new keybinding, you just need to look at existing keybindings doing similar things (i.e. dialog-show):

    https://gitorious.org/fg/fgdata/blobs/master/keyboard.xml#line165

    Now, you just need to copy this, adjust the key/name and dialog name:

    <key n="18">
      <name>Ctrl-R</name>
      <desc>Activate the instant replay system</desc>
      <binding>
       <command>replay</command>
      </binding>
      <binding>
        <command>dialog-show</command>
        <dialog-name>replay</dialog-name>   
      </binding>
    </key>

     
  • Anonymous

    Anonymous - 2012-06-12

    Originally posted by: stuar... (code.google.com)@gmail.com

    Ctrl-M is listed in keyboard.xml as used used for the Enter key under plib.

    I think it's now redundant as we no-longer use PLIB for keyboard correct?

    See keyboard.xml lines 120.

    On my system this works fine.

    -Stuart

     
  • Anonymous

    Anonymous - 2012-11-27

    Originally posted by: zakalawe@mac.com

    Okay, will add Ctrl-M and see who objects :)

    Status: Accepted

     
  • Anonymous

    Anonymous - 2012-11-27

    Originally posted by: zakalawe@mac.com

    (No comment was entered for this change.)

    Owner: zakalawe@mac.com

     
  • Anonymous

    Anonymous - 2013-05-03

    Originally posted by: gijsrooy

    James, forgot to add the key?

     
  • Anonymous

    Anonymous - 2013-11-05

    Originally posted by: zakalawe@mac.com

    Fixed in 7d251be9c2a891539072bc6b7, finally.

    Status: Fixed

     
  • Anonymous

    Anonymous - 2013-11-07

    Originally posted by: gijsrooy

    (No comment was entered for this change.)

    Labels: Milestone-3.0

     

Log in to post a comment.

MongoDB Logo MongoDB