Page MenuHome

Unable to Properly Hotkey "Layer Toggling" Using Alt/Shift/Ctrl
Closed, ArchivedPublic

Description

Blender Version
v2.76b

Short description of error
I do not have a numpad on this (small mechanical) keyboard, so I tried to remap the view3d.layers key bindings to use the ALT key. It seems that the code for toggling and extending a layer checks internally if ALT or SHIFT is pressed, so it is currently impossible to bind say Alt+1 to toggle layer 1. Similar issues for using SHIFT or CTRL keys exist. Fixing this would be of great help to those without a numpad.

Exact steps for others to reproduce the error

  • Edit User Preferences
  • Select Input Tab
  • Search for Key-Binding: 1
  • Rebind the 3D View / Layers mapping from 1 to Alt 1
  • Notice how Layer 11 is now selected when pressing the hotkey. Alt seems to be used to imply 'Add 10 to the layer'. If Shift 1 is used (and the other camera hotkey disabled), Shift appears to override the toggle behavior and force it to "Extend" similar to how it works on the Layers UI control.

Note: This seems to be a bug regardless of having Emulate Keypad enabled.

Event Timeline

Doug Cox (ziflin) raised the priority of this task from to 90.
Doug Cox (ziflin) updated the task description. (Show Details)
Doug Cox (ziflin) added a project: BF Blender.
Doug Cox (ziflin) edited a custom field.
Bastien Montagne (mont29) changed the task status from Unknown Status to Unknown Status.Dec 2 2015, 5:37 PM
Bastien Montagne (mont29) claimed this task.

Thanks for the report, but still having way too much hard-coded shortcuts in Blender is a known TODO, not really considered as a bug currently.

Further more, no need to have an English keyboard (or one with a numpad) to use default layers shortcuts, it should work with pretty much any keyboard (at least, works here on my french one, without having to press shift or anything). Note that alt + number toggles layers from 11 to 20.

If you do not have a numpad (smaller laptops don't), and want to use the camera views on 1-0 keys, then I was not able to select layers. In order to fix this I attempted to remap the layer toggles to Alt+1-0, but because of hardcoded shortcut keys this can't be done. Is there some other task for this cleanup as it definitely seems like a bug?

Getting rid of hard-coded shortcuts is in our TODO list afaik…