vaadin / vaadin/spreadsheet

Spreadsheet Shortcut for "Copy" breaks Clipboard

Open
#650 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
50
Forks
53
Avg merge
1d 21h
Merged PRs (30d)
1

Description

spreadsheet.addShortcutListener(
    	new ShortcutListener("Copy Shortcut META", KeyCode.C, new int[] {ShortcutAction.ModifierKey.META}) {
    		@Override
		public void handleAction(Object sender, Object target) {
			// TODO copy action
		}
        });

This intercepts Copy key commands on a Mac just fine. BUT it breaks the clipboard. To be specific values that are copied are using C+META are no longer copied to the clipboard. Same thing happens with paste.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the spreadsheet.addShortcutListener snippet and the handling of META+C and paste on macOS. Reproduce the issue with copy and paste, then identify where the shortcut intercepts clipboard behavior; done means both commands continue to preserve normal clipboard functionality.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.