Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Solved
    • Unsolved
    1. Home
    2. Tags
    3. keyboard shortcuts
    Log in to post

    • paulvanderlaan

      UNSOLVED Prepolator: shortcuts for previous/next glyph don't work
      Extensions • keyboard shortcuts prepolator • • paulvanderlaan  

      5
      0
      Votes
      5
      Posts
      28
      Views

      paulvanderlaan

      Thank you. That's great to hear Frederik. Please wait a little with pushing an update. I encountered a bunch of small errors that you might want to have a look at too. Will post them shortly.
    • StephenNixon

      SOLVED Are there keyboard shortcuts / hotkeys for Prepolator extension functions?
      Extensions • keyboard shortcuts prepolator • • StephenNixon  

      5
      0
      Votes
      5
      Posts
      481
      Views

      StephenNixon

      Awesome, thanks Frederik and Tal!
    • RafaŁ Buchner

      SOLVED How to create Short Key popover?
      General Questions • user interface keyboard shortcuts • • RafaŁ Buchner  

      8
      0
      Votes
      8
      Posts
      339
      Views

      RafaŁ Buchner

      oh my god, I'm really blind o_O
    • bahman

      SOLVED Can’t change some menu shortcuts
      Problems & Bugs • extensions keyboard shortcuts • • bahman  

      4
      0
      Votes
      4
      Posts
      295
      Views

      bahman

      I rewrote your code in another way that is more clear to me, maybe others would find this useful. This opens a window in which, the start button initiates the override RF keys state and also there is a stop button: import AppKit from vanilla import * _ignore = {'⌘s', '⇧⌘s', '⌘q', '⇧⌘q'} MODIFIER_INT_TO_STR = { AppKit.NSCommandKeyMask: '⌘', AppKit.NSControlKeyMask: '⌃', AppKit.NSAlternateKeyMask: '⌥', AppKit.NSShiftKeyMask: '⇧', AppKit.NSCommandKeyMask | AppKit.NSShiftKeyMask: '⇧⌘', AppKit.NSCommandKeyMask | AppKit.NSAlternateKeyMask: '⌘⌥', AppKit.NSCommandKeyMask | AppKit.NSControlKeyMask : '⌃⌘', AppKit.NSControlKeyMask | AppKit.NSShiftKeyMask: '⇧⌃', AppKit.NSAlternateKeyMask | AppKit.NSShiftKeyMask: '⇧⌥', } class KeyEventMonitor(object): def __init__(self): self.monitor = None self.w = Window((300, 90), "KeyEventMonitor Debuggin window") self.w.b1 = Button((10, 10, -10, 20), "Stop", callback=self.stop) self.w.b2 = Button((10, 40, -10, 20), "Start", callback=self.start) self.w.bind("close", self.stop) self.w.open() def stop(self, sender): self._stopOverridingRFkeys() def start(self, sender): self._startOverridingRFkeys() def _startOverridingRFkeys(self): self._stopOverridingRFkeys() self.monitor = AppKit.NSEvent.addLocalMonitorForEventsMatchingMask_handler_( AppKit.NSKeyDownMask, self._keyDown) def _stopOverridingRFkeys(self): if self.monitor is not None: AppKit.NSEvent.removeMonitor_(self.monitor) self.monitor = None def _keyDown(self, event): allKeys = MODIFIER_TO_STR.get(event.modifierFlags(), '') + event.charactersIgnoringModifiers().lower() if allKeys in _ignore: print("overriding %s" %allKeys) else: self._stopOverridingRFkeys() AppKit.NSApp().sendEvent_(event) self._startOverridingRFkeys() KeyEventMonitor()
    • bahman

      UNSOLVED Getting the command for a menu item
      General Questions • keyboard shortcuts • • bahman  

      1
      0
      Votes
      1
      Posts
      153
      Views

      bahman

      Hi, this is a rather odd request! It's possible to get menu shortcuts using the getMenuShortCuts in mojo.UI, I was wondering if I can also access its command? I want to introduce shortcuts through a tool that conflicts with RF default keys like "⌘s" or "⌘⇧s" and I want to replace them to "␣s" or "␣⇧s" when the tool is active. But now I want to fire the command that saves the active UFO when the user hits "␣s", it's possible through font.save() but I'm not sure if it works for "Save as" or other menu items. So I want to access the command itself so I don't have to redefine it. Thanks!
    • bahman

      SOLVED Programmatically change menu shortcuts
      Problems & Bugs • preferences keyboard shortcuts • • bahman  

      6
      0
      Votes
      6
      Posts
      385
      Views

      bahman

      Alright, I will consider this for my extension until it gets fixed. These are awaited features for me and very much appreciated.
    • StephenNixon

      SOLVED Sometimes, when I try to run a script, it just opens in the scripting window. Why?
      General Questions • keyboard shortcuts • • StephenNixon  

      8
      0
      Votes
      8
      Posts
      687
      Views

      StephenNixon

      Interesting solution. Sounds good to me! Thanks for figuring out a way to solve this. :)
    • ryan

      SOLVED Syntax for keyboard "# shortCut:"?
      General Questions • scripting keyboard shortcuts • • ryan  

      6
      1
      Votes
      6
      Posts
      647
      Views

      ryan

      Perfect, thanks Frederik.
    • Kris

      SOLVED Metrics Machine 1.0.3 Shortcut Keys
      Extensions • keyboard shortcuts metrics machine • • Kris  

      3
      0
      Votes
      3
      Posts
      508
      Views

      Kris

      Oh — thank you! Am I missing a the manual somewhere? ⌘+i = iddqd ;-)
    • StephenNixon

      SOLVED Request: an alert when a short key is already taken by another menu item + a view of all short keys in use
      Feature Requests • preferences keyboard shortcuts • • StephenNixon  

      6
      0
      Votes
      6
      Posts
      1040
      Views

      StephenNixon

      Oh nice! This will be super handy. :)
    • Guest

      SOLVED Is it possible to sort the tools in Toolbar?
      General Questions • user interface preferences keyboard shortcuts • • Guest  

      6
      0
      Votes
      6
      Posts
      986
      Views

      StephenNixon

      Ahhh I completely missed that. Thanks!
    • bahman

      Override a default shortcut
      Feature Requests • keyboard shortcuts saving • • bahman  

      6
      0
      Votes
      6
      Posts
      946
      Views

      frederik

      if you want to receive those notifications, just add this .py file to the start up scripts in your preferences. This doesn't effect performance, unless to your part of the code, what is been executed when the notification is been send, takes a while.
    • jbl

      Shortcuts to python scripts
      General Questions • preferences keyboard shortcuts • • jbl  

      1
      0
      Votes
      1
      Posts
      473
      Views

      jbl

      Somehow I can't set the preferences to use "keyboard shortcuts to python script" work. What's the right procedure?
    • jo

      Swap layers via hot key
      General Questions • user interaction layers keyboard shortcuts • • jo  

      2
      0
      Votes
      2
      Posts
      470
      Views

      frederik

      With swap you move the current layer to an other layer. Flipping would also move the layer glyph to the source layer. The action menu in the layer inspector pane will be gone in the next version. but you can still use: g = CurrentGlyph() g.flipLayers("foreground", "background")
    • charlesmchen

      Shortcuts for scripts/extensions
      Feature Requests • extensions keyboard shortcuts • • charlesmchen  

      4
      0
      Votes
      4
      Posts
      652
      Views

      frederik

      That is correct. For hot keys to scripts in an extension it's up to the developer of the extension to assign hot keys.
    • bas

      Hide Inspector
      Feature Requests • user interaction keyboard shortcuts • • bas  

      2
      0
      Votes
      2
      Posts
      463
      Views

      frederik

      The beta for 1.3 hides the inspector window when it's already open. So one can close and open the inspector window with the same short cut.
    • bas

      Short key scripts
      General Questions • preferences keyboard shortcuts • • bas  

      6
      0
      Votes
      6
      Posts
      870
      Views

      danmilne

      You can also set the keyboard shortcuts through System Prefs > Keyboard > Application Shortcuts. This allows a greater range of keys and modifiers. http://cl.ly/3u05140G2S353P3F1u3e
    • jbl

      Custom keyboard shortcuts
      Feature Requests • keyboard shortcuts • • jbl  

      1
      0
      Votes
      1
      Posts
      535
      Views

      jbl

      (I'm not sure that I did not post this already but…) Please allow full keyboard shortcuts support for all menu items. (Not only a few functions) And please do not reserve keys for some tools. (Including control keys (cmd, ctrl…) and arrow keys accessible as hotkeys).
    • jbl

      Custom keyboard shortcuts
      Feature Requests • keyboard shortcuts • • jbl  

      3
      0
      Votes
      3
      Posts
      566
      Views

      jbl

      Thank you!