Skip to content

Implement Shift+Arrow to select cell range #4906

@seancolsen

Description

@seancolsen

With a cell selected in a sheet, try the following keyboard shortcuts:

  • Shift+Up
  • Shift+Down
  • Shift+Left
  • Shift+Right

These keyboard shortcuts should grow/shrink a cell selection range. But they don't yet work.

In your browser console, notice a log message like this:

Sheet selection resizing is not yet implemented

I had previously set up the event handlers for this shortcut but not finished implementing the selection mutation. This should be a pretty straightforward task for someone to pick up from here.

At the bottom of SheetSelection.ts, you can find the code location for this log statement. Finish implementing the resized method, as described in the comment. Play with Google Sheets to get a good understanding of how Shift+Arrow keys work. Pay particular attention to the (literal!) edge cases when the selection has reached the edge of the sheet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueEverything in "Help wanted", PLUS being relatively easy and straightforward to implement.help wantedCommunity contributors can implement thisreadyReady for implementationtype: enhancementwork: frontendRelated to frontend code in the mathesar_ui directory

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions