Make mac-default delete happy

On mac, the backspace key is commonly used from removing items.  The
forward delete key doesn't really exist (it is hidden behind
fn-backspace), so this modifies our common use of delete.  The
context-dependent usage in router and polygon creation are unaffected as
CONTEXT overrides GLOBAL when processing
This commit is contained in:
Seth Hillbrand 2021-02-15 15:04:44 -08:00
parent 199ef61cdc
commit 2566547377
1 changed files with 6 additions and 1 deletions

View File

@ -181,7 +181,12 @@ TOOL_ACTION ACTIONS::duplicate( "common.Interactive.duplicate",
TOOL_ACTION ACTIONS::doDelete( "common.Interactive.delete",
AS_GLOBAL,
WXK_DELETE, LEGACY_HK_NAME( "Delete Item" ),
#if defined( __WXMAC__ )
WXK_BACK,
#else
WXK_DELETE,
#endif
LEGACY_HK_NAME( "Delete Item" ),
_( "Delete" ), _( "Deletes selected item(s)" ),
trash_xpm );