# Short-cut for “cursor to selected”

Can I program a direct short-cut (keyboard) for the functions "cursor to selected" and "selection to cursor"? Couldn't find them under the User Preference/Input tab. I know they're under Shift+S, but then I still have to select from the pull-down menu, and that is too cumbersome.

• Perhaps you already know this, but for pulldowns it often helps to use the menu accelerators. You can use the number row to select entries in order (1 for the top entry, 2 for the second, 3 for the third, etc.). Or you can use the letter key corresponding to the underlined letter in the entry you want. For example both Shift S 2 and Shift S T will snap the selection to the cursor. – gandalf3 Dec 16 '15 at 11:45
• @gandalf3♦ I answered similar question some time ago and presented the same solution (blender.stackexchange.com/questions/36894/…). The answer got 'duplicate' status and was closed, but I think it shouldn't be (cause it shows different solution from the one that NᴏᴠɪᴄᴇIɴDɪsɢᴜɪsᴇ aka HATMAN presented). Could you please reopen it? – Paul Gonet Dec 16 '15 at 20:47

I sacrifice the default shortcut for To Sphere (shift+alt+S) and made it bpy.ops.view3d.snap_cursor_to_selected() instead.