How to use the @lumino/commands.CommandRegistry.formatKeystroke function in @lumino/commands

To help you get started, we’ve selected a few @lumino/commands examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyterlab / jupyterlab / packages / apputils-extension / src / palette.ts View on Github external
const updatePaletteTitle = () => {
      const binding = find(
        app.commands.keyBindings,
        b => b.command === CommandIDs.activate
      );
      if (binding) {
        const ks = CommandRegistry.formatKeystroke(binding.keys.join(' '));
        palette.title.caption = `Commands (${ks})`;
      } else {
        palette.title.caption = 'Commands';
      }
    };
    updatePaletteTitle();

@lumino/commands

Lumino Commands

BSD-3-Clause
Latest version published 5 months ago

Package Health Score

83 / 100
Full package analysis

Similar packages