Giter Site home page Giter Site logo

Comments (8)

redmunds avatar redmunds commented on July 17, 2024

I see the shortcut listed on my English Win7 system. The shortcuts are passed to brackets-shell to register in the native code, so it's probably because it's not valid with a german keyboard.

from brackets-display-shortcuts.

marcelgerber avatar marcelgerber commented on July 17, 2024

Hm, I tried to find the error codes of brackets.app.setMenuItemShortcut, but I haven't found them (and yes, I searched for them in brackets-shell). Does anybody know them?

from brackets-display-shortcuts.

redmunds avatar redmunds commented on July 17, 2024

brackets.app.setMenuItemShortcut calls the platform-specific implementation of SetMenuItemShortcut

On Windows, look in appshell/appshell_extensions_win.cpp:
Take a look at UpdateAcceleratorTable(). It only return true/false and most of the logic is in there -- mostly to do with virtual key mappings and unicode characters.

On Mac, look in appshell/appshell_extensions_mac.mm:
It does not seem to return an error for any shortcut.

from brackets-display-shortcuts.

marcelgerber avatar marcelgerber commented on July 17, 2024

Hm, seems the comment on line 1297 explains why it doesn't work. But it's weird too because the shortcuts "Toggle Line Comment" and "Toggle Block Comment", which also use / as base key, are shown correctly (and there is no console output for them). Are they registered on another way?

from brackets-display-shortcuts.

redmunds avatar redmunds commented on July 17, 2024

Most builtin shortcuts are defined using the base-config/keyboard.json file. I thought that they would use same underlying code path, but may not. Or maybe they are, but the console messages are suppressed.

from brackets-display-shortcuts.

marcelgerber avatar marcelgerber commented on July 17, 2024

Yes, it seems they are handled on another way (_handleCommandRegistered in src/command/KeyBindingManager.js registers the shortcut for them, addMenuItem is called with only one param).

from brackets-display-shortcuts.

redmunds avatar redmunds commented on July 17, 2024

@SAplayer I just noticed this issue is still open. Were you waiting on me for something?

from brackets-display-shortcuts.

marcelgerber avatar marcelgerber commented on July 17, 2024

No, I just forgot to close it.
Closing.

from brackets-display-shortcuts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.