View unanswered posts | View active topics



Reply to topic  [ 5 posts ] 
Keyboard settings (for Mac users) 
Author Message
Member

Joined: Wed Jan 04, 2006 8:49 am
Posts: 101
Reply with quote
Working on a Mac and now running the fantastic VirtualBox I have nearly got everything working in FD except a few small things.

My keyboard-mapping looks like this:
1. Left Alt-key is a copy of the Alt Gr key.
2. CMD-Key is mapped to the CTRL-key.

1. In OS X you jump between words with the Alt-key rather than the Ctrl-key, + LEFT or RIGHT. (In Notepad you can jump between words with Alt Gr and LEFT or RIGHT, however Notepad doesn't do magic for AS3 ;))

2. In OS X you can jump from start to end to start on a row using CMD + LEFT or RIGHT instead of using HOME and END, especially great when using a keyboard that lack those keys.

1. Is it possible to fix so that Alt Gr works as in Notepad?
2. A setting for how you'd want to navigate would rock, e.i. CTRL + LEFT or RIGHT, jumps between start or end instead of between words.

(I presume I could use some macro key manager for nr.2 but thought I'd ask anyways.)

Any updates on the platform independency?

Cheers!


Thu Sep 03, 2009 8:37 am
Profile
Member

Joined: Wed Jan 04, 2006 8:49 am
Posts: 101
Reply with quote
Narrowing it down to one specific question in hope of getting a reply.

1. Is it possible to fix so that Alt Gr works as in Notepad? (I.e. jump between words when using Alt Gr + arrow keys, same functionality as Ctrl + arrow keys)


Mon Sep 07, 2009 12:04 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
You can use add a ScintillaCommand as a menu item with any valid .NET keys combination.

You have a list of commands here:
http://www.flashdevelop.org/wikidocs/in ... tle=Macros

You can add one command as a menu item in MainMenu.xml:
Code:
<button label="Extend left" click="ScintillaCommand" tag="WordLeftExtend"
  shortcut="Alt|Control|Left" flags="Enable:IsEditable" />


Mon Sep 07, 2009 7:27 pm
Profile WWW
Member

Joined: Wed Jan 04, 2006 8:49 am
Posts: 101
Reply with quote
Thanks a lot for the enlightenment Philippe!

It sure worked better than I had hoped for. Now it won't be so confusing for Mac users when switching between Host/Guest OS.

For anyone else who like the keyboard-shortcuts to work as requested, add those nodes to your Settings.fdb located here: \Local Settings\Application Data\FlashDevelop\Data\MacroManager


Code:
<Macro>
      <Label>&amp;MoveLeft</Label>
      <Image />
      <Entries>
        <string>ScintillaCommand|WordLeft</string>
      </Entries>
      <AutoRun>false</AutoRun>
      <Shortcut>LButton MButton XButton1 Space Prior PageUp Home Left Control Alt</Shortcut>
    </Macro>
    <Macro>
      <Label>&amp;MoveRight</Label>
      <Image />
      <Entries>
        <string>ScintillaCommand|WordRightEnd</string>
      </Entries>
      <AutoRun>false</AutoRun>
      <Shortcut>LButton RButton Cancel MButton XButton1 XButton2 Space Prior PageUp Next PageDown End Home Left Up Right Control Alt</Shortcut>
    </Macro>
    <Macro>
      <Label>&amp;MoveToLineEnd</Label>
      <Image />
      <Entries>
        <string>ScintillaCommand|LineEnd</string>
      </Entries>
      <AutoRun>false</AutoRun>
      <Shortcut>LButton RButton Cancel MButton XButton1 XButton2 Space Prior PageUp Next PageDown End Home Left Up Right Control</Shortcut>
    </Macro>
    <Macro>
      <Label>&amp;MoveToLineStart</Label>
      <Image />
      <Entries>
        <string>ScintillaCommand|VCHome</string>
      </Entries>
      <AutoRun>false</AutoRun>
      <Shortcut>LButton MButton XButton1 Space Prior PageUp Home Left Control</Shortcut>
    </Macro>
    <Macro>
      <Label>&amp;MoveLeftExtend</Label>
      <Image />
      <Entries>
        <string>ScintillaCommand|WordLeftExtend</string>
      </Entries>
      <AutoRun>false</AutoRun>
      <Shortcut>LButton MButton XButton1 Space Prior PageUp Home Left Shift Control Alt</Shortcut>
    </Macro>
    <Macro>
      <Label>&amp;MoveRightExtend</Label>
      <Image />
      <Entries>
        <string>ScintillaCommand|WordRightExtend</string>
      </Entries>
      <AutoRun>false</AutoRun>
      <Shortcut>LButton RButton Cancel MButton XButton1 XButton2 Space Prior PageUp Next PageDown End Home Left Up Right Shift Control Alt</Shortcut>
    </Macro>
    <Macro>
      <Label>&amp;MoveToLineStartExtend</Label>
      <Image />
      <Entries>
        <string>ScintillaCommand|VCHomeExtend</string>
      </Entries>
      <AutoRun>false</AutoRun>
      <Shortcut>LButton MButton XButton1 Space Prior PageUp Home Left Shift Control</Shortcut>
    </Macro>
    <Macro>
      <Label>&amp;MoveToLineEndExtend</Label>
      <Image />
      <Entries>
        <string>ScintillaCommand|LineEndExtend</string>
      </Entries>
      <AutoRun>false</AutoRun>
      <Shortcut>LButton RButton Cancel MButton XButton1 XButton2 Space Prior PageUp Next PageDown End Home Left Up Right Shift Control</Shortcut>
    </Macro>
    <Macro>
      <Label>&amp;MoveToDocStart</Label>
      <Image />
      <Entries>
        <string>ScintillaCommand|DocumentStart</string>
      </Entries>
      <AutoRun>false</AutoRun>
      <Shortcut>RButton MButton XButton2 Space Next PageDown Home Up Control</Shortcut>
    </Macro>
    <Macro>
      <Label>&amp;MoveToDocEnd</Label>
      <Image />
      <Entries>
        <string>ScintillaCommand|DocumentEnd</string>
      </Entries>
      <AutoRun>false</AutoRun>
      <Shortcut>Back Space Down Control</Shortcut>
    </Macro>
    <Macro>
      <Label>&amp;MoveToDocStartExtend</Label>
      <Image />
      <Entries>
        <string>ScintillaCommand|DocumentStartExtend</string>
      </Entries>
      <AutoRun>false</AutoRun>
      <Shortcut>RButton MButton XButton2 Space Next PageDown Home Up Shift Control</Shortcut>
    </Macro>
    <Macro>
      <Label>&amp;MoveToDocEndExtend</Label>
      <Image />
      <Entries>
        <string>ScintillaCommand|DocumentEndExtend</string>
      </Entries>
      <AutoRun>false</AutoRun>
      <Shortcut>Back Space Down Shift Control</Shortcut>
    </Macro>
  </UserMacros>
</Settings>


Cheers!


Mon Sep 07, 2009 8:54 pm
Profile
Member

Joined: Fri Oct 03, 2014 9:27 pm
Posts: 1
Reply with quote
My mapping on my mac is a little off to. I'll try out the add a ScintillaCommand as a menu item with .NET key combos. Hopefully this sorts thing out for me.

_________________
Juliet


Fri Oct 03, 2014 9:32 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.