Skip to main content

  1. Describe the problem your experiencing and how your idea helps solve this


When editing text on the canvas, I expect CTRL + D to delete forward. Figma does support some of these OS level behaviors when editing text in the canvas (e.g., CTRL + H, CTRL + K), just not uniformly. What I find most frustrating is that CTRL + D works when editing the names of Layer and Page names in the left panel.



  1. Add as much context as possible (screenshots, Figma files, mockups, etc.)


See Mac Keyboard Shortcuts



  1. Ask questions to bring the community into the conversation

    (e.g. Does anyone else experience this? Is anyone using a plugin or workaround to help solve this?, etc.


Would anyone else like to see more canonical keyboard shortcuts available when editing inside a text frame?

Wow, I didn’t know this shortcut existed! Much better than fn + backspace.


As a workaround, you can use BetterTouchTool to set custom shortcuts for any app and remap Ctrl + D in Figma to fn + backspace.


I guess a workaround rebinding the keys will have to do. Here are some workarounds:


Hammerspoon

If anyone else uses Hammerspoon, here is my solution:


forwardDelete = hs.hotkey.new({"ctrl"}, "d",  function()
hs.eventtap.keyStroke({}, "forwarddelete")
end)

hs.window.filter.new('Figma')
:subscribe(hs.window.filter.windowFocused,function()
forwardDelete:enable()
end)
:subscribe(hs.window.filter.windowUnfocused,function()
forwardDelete:disable()
end)


Although my initial reaction was to do this with HS, it doesn’t seem to emit the new key code and might be a little fragile.


I may end up going with Karabiner-Elements version below.




Karabiner Elements

This is the complex modification I wrote for Karabiner-Elements to do the same thing.


{
"title": "Figma key remaps",
"rules": :{
"description": "CTRL + D is delete_forward in Figma",
"manipulators": :{
"conditions": :{
"type": "frontmost_application_if",
"bundle_identifiers": :"^com\\.figma\\.Desktop$"]
}],
"from": {
"key_code": "d",
"modifiers": {"mandatory": :"left_control"]}
},
"to": :{"key_code": "delete_forward" }],
"type": "basic"
}]
}]
}

Text nodes now support “delete forward” with Ctrl + D on Mac!


Reply