desktop_context_menu icon indicating copy to clipboard operation
desktop_context_menu copied to clipboard

The shortcut representation of Delete and Backspace keys is wrong

Open whiplashoo opened this issue 3 years ago • 3 comments

Providing the Delete or Backspace keys as shortcuts to the ContextMenuItems like this:

final selectedItem = await showContextMenu(
    menuItems: [
      ContextMenuItem(
        title: 'Test delete',
        onTap: () {},
        shortcut: const SingleActivator(
          LogicalKeyboardKey.delete,
        ),
      ),
      const ContextMenuSeparator(),
      const ContextMenuItem(
        title: 'Test backspace',
        shortcut: SingleActivator(
          LogicalKeyboardKey.backspace,
        ),
      ),
    ],
  );

doesn't show the correct symbol next to the menu entry, but shows instead "D" or "B":

Screenshot 2022-05-13 at 12 46 43 PM

It should show ⌦ or ⌫, respectively.

whiplashoo avatar May 13 '22 09:05 whiplashoo

Hi @whiplashoo, thank you for opening this issue! This is being investigated and a fix is being worked on 👍

EDIT: A PR has been opened however, while testing it we've noticed that before Flutter 3.0 it works fine however since Flutter 3.0 the changes in the PR do not fix the problem...

nfsxreloader avatar May 13 '22 10:05 nfsxreloader

Sorry to get back to this, but is there a fix available?

whiplashoo avatar Jan 09 '23 09:01 whiplashoo

This package (actually all rows packages) is not being maintained anymore, apparently.

renancaraujo avatar Feb 08 '23 16:02 renancaraujo