From 25665473772ad6cd72c7b459c162221c83f6796e Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 15 Feb 2021 15:04:44 -0800 Subject: [PATCH] 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 --- common/tool/actions.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/tool/actions.cpp b/common/tool/actions.cpp index d2996de571..c63121c411 100644 --- a/common/tool/actions.cpp +++ b/common/tool/actions.cpp @@ -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 );