swagger-editor icon indicating copy to clipboard operation
swagger-editor copied to clipboard

Keyboard shortcuts help

Open hkosova opened this issue 8 years ago โ€ข 2 comments

Q A
Bug or feature request? Feature request
Which Swagger/OpenAPI version? -
Which Swagger-Editor version? 3.x
How did you install Swagger-Editor? http://editor.swagger.io
Which browser & version? -
Which operating system? -

Swagger Editor uses Ace as the editor component. Ace supports various keyboard shortcuts, e.g. Ctrl + / to toggle comment. As a keyboard user, I want to be able to see all keyboard shortcuts supported by the Editor, without having to refer to external resources.

Demonstration API definition

n/a

Configuration (browser query string, constructor, config.yaml)

n/a

Expected Behavior

There's a way to see all keyboard shortcuts supported by the Editor.

Current Behavior

There's currently no way to see the keyboard shortcuts supported by the Editor.

Possible Solution

Add the Help > Keyboard Shortcuts menu that would display a list of all supported shortcuts. This Ace demo uses Ctrl+Alt+H to displays the shortcuts, but as a user I would prefer an explicit menu item / button / link.

Note that Ace shortcuts are OS-specific, e.g. Replace is Ctrl + H on Windows/Linux and Command + Option + F on Mac.

Context

Keyboard shortcuts help use the Editor faster, so making the shortcuts discoverable could improve the Editor usability.

hkosova avatar Mar 28 '18 15:03 hkosova

How about having a little nice icon that displays a helpful dropdown upon hovering over it? It will then display a link to Ace's shortcuts. We could even use this icon.

This way, we will have a much easier time figuring out the shortcuts.

I would gladly do it myself if you think it's a worthwhile idea. @tim-lai @shockey @webron (I'm not sure who the active maintainer is... please bear with me ๐Ÿ˜…)

image

Andrei199991 avatar Dec 22 '20 07:12 Andrei199991

Weโ€™ve released Swagger Editor v5! ๐ŸŽ‰ Check out the details here: Inside the New Swagger Editor. Weโ€™re closing old issues related to previous versions. If you think any of them are still relevant, please open a new issue โ€“ this helps us prioritize what matters most. Thanks for your activity! ๐Ÿš€

MichakrawSB avatar Dec 05 '25 13:12 MichakrawSB