GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Suggestion]: Keyboard navigation for Run and Clear · Issue #11 · java/devrel

[Suggestion]: Keyboard navigation for Run and Clear  #11

New issue
Copy link
New issue
Copy link
Open
Open
[Suggestion]: Keyboard navigation for Run and Clear #11
Copy link
Assignees
delabassee
Labels
enhancementNew feature or requestNew feature or requestplayground

Description

@tofflos
tofflos
opened on Oct 7, 2023
Issue body actions

What happened?

I have to move my hands from the keyboard, grab the mouse, and click the Run and Clear buttons.
Afterwards I have to click the text area to continue editing.

Consider adding a keyboard shortcut such as Control + Return for launching Run and showing the keyboard shortcut as a tooltip.
Consider moving the keyboard focus back to text area after launching Run and Clear.

OS

Windows

What browsers are you seeing the problem on?

Firefox

Contact Details (optional)

No response

Additional information

Leave blank

Reacted by BingLi224

Activity

  1. tofflos
    added
    bugSomething isn't workingSomething isn't working
    playground
    on Oct 7, 2023
  2. delabassee
    self-assigned this
    on Oct 7, 2023
  3. delabassee commented on Oct 9, 2023

    @delabassee
    delabassee
    on Oct 9, 2023
    Member
    More actions

    It's a bit difficult to find bindings that are relatively obvious and free.
    I suggest Ctrl+Enter for "Run" and Ctrl+Backspace for "Clear", ⌘+Enter & ⌘+Backspace on Mac.

  4. nipafx commented on Oct 9, 2023

    @nipafx
    nipafx
    on Oct 9, 2023
    More actions

    Ctrl+Enter for "Run" is great but Ctrl+Backspace is already taken for "delete word before cursor" (in most text editors and browsers). You could use Ctrl+Shift+Backspace for that.

  5. delabassee commented on Oct 9, 2023

    @delabassee
    delabassee
    on Oct 9, 2023
    Member
    More actions

    Not a big fan of a 3 keys combo. What about Ctrl+Esc instead?

  6. danthe1st commented on Oct 9, 2023

    @danthe1st
    danthe1st
    on Oct 9, 2023
    More actions

    Ctrl+Esc is at least used by Windows for bringing up the start menu.

  7. carimura commented on Oct 9, 2023

    @carimura
    carimura
    on Oct 9, 2023
    More actions

    +1 to command+return on Mac for running -- makes sense and is consistent with other behaviour (like sending this comment). I think sending the focus to the code window after run makes sense.

    It's fine If we don't settle on clear for now as cmd+a then delete is a native way to clear the window without having to map anything and it keeps the focus.

  8. delabassee commented on Oct 9, 2023

    @delabassee
    delabassee
    on Oct 9, 2023
    Member
    More actions

    Note that "clear" clears both the editor and the console.

  9. delabassee
    added
    enhancementNew feature or requestNew feature or request
    and removed
    bugSomething isn't workingSomething isn't working
    on Oct 9, 2023
  10. tofflos commented on Oct 9, 2023

    @tofflos
    tofflos
    on Oct 9, 2023
    Author
    More actions

    I'd be super happy with just the Run shortcut and I'm not sure I would use a Clear shortcut often enough to warrant a shortcut.

  11. delabassee commented on Oct 10, 2023

    @delabassee
    delabassee
    on Oct 10, 2023
    Member
    More actions

    Isn't Esc a good "Clear" (console & editor) shortcut?

  12. nipafx commented on Oct 13, 2023

    @nipafx
    nipafx
    on Oct 13, 2023
    More actions

    Ctrl+Shift+Backspace is not uncommon for larger deletes, e.g. in GitHub comment fields it deletes a line.

    Isn't Esc a good "Clear" (console & editor) shortcut?

    Only if a popup asks whether you really want to do that. Otherwise Esc is too commonly used to have such destructive effects.

  13. danthe1st commented on Oct 13, 2023

    @danthe1st
    danthe1st
    on Oct 13, 2023
    More actions

    I am unsure whether an option to clear the console together with the output is really necessary. After all, the console is cleared anyways when re-running the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @delabassee
    delabassee

Labels

enhancementNew feature or requestNew feature or requestplayground

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.