Unable to Properly Hotkey "Layer Toggling" Using Alt/Shift/Ctrl #46907

Closed
opened 2015-12-01 14:51:15 +01:00 by Doug Cox · 7 comments

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.

**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.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @ziflin

Added subscriber: @ziflin

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2015-12-02 17:37:19 +01:00

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.

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.
Author

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?

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…

Getting rid of hard-coded shortcuts is in our [TODO list](http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo) afaik…
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#46907
No description provided.