Remove Hard-Coded Keymap Items #37520

Closed
opened 2013-11-18 17:27:42 +01:00 by Jonathan Williamson · 15 comments

A few keymap items are still hard-coded in C. These should be removed and implemented in Python through the normal keymap instead.

Hard-coded Keys

  • I to insert keyframe on a value

//Edit, there are quite a few others remaining,
see: https://www.blender.org/manual/interface/common_shortcuts.html

A few keymap items are still hard-coded in C. These should be removed and implemented in Python through the normal keymap instead. **Hard-coded Keys** - **I** to insert keyframe on a value ---- //Edit, there are quite a few others remaining, see: https://www.blender.org/manual/interface/common_shortcuts.html
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Jonathan Williamson self-assigned this 2013-11-18 17:27:42 +01:00
Author
Member

Added subscribers: @JonathanWilliamson, @brecht, @cessen, @PawelLyczkowski-1, @billrey

Added subscribers: @JonathanWilliamson, @brecht, @cessen, @PawelLyczkowski-1, @billrey

Basically the entire keymap to interact with buttons and panels is hardcoded, and we can make this partially configureable without too much effort. So what you could configure is keys like E eye dropper, I insert keyframe, D insert driver, K keying sets.

The other part like mouse clicks on buttons, up/down keys in a menu, backspace to remove text, etc would not be configureable but that's not a usual thing to be able to configure anyway, as the way all those things interact is necessarily quite complex and not something you want to expose.

For developers: this requires adding a UI 'modal' keymap (the name is a bit poor but these keymaps are used now during modal tools and this is basically the same kind of data structure we need). This then needs to get used in the UI code somehow in the place where these particular shortcut keys are used, where rather than checking the hardcoded event values you look them up in the keymap.

Basically the entire keymap to interact with buttons and panels is hardcoded, and we can make this partially configureable without too much effort. So what you could configure is keys like E eye dropper, I insert keyframe, D insert driver, K keying sets. The other part like mouse clicks on buttons, up/down keys in a menu, backspace to remove text, etc would not be configureable but that's not a usual thing to be able to configure anyway, as the way all those things interact is necessarily quite complex and not something you want to expose. For developers: this requires adding a UI 'modal' keymap (the name is a bit poor but these keymaps are used now during modal tools and this is basically the same kind of data structure we need). This then needs to get used in the UI code somehow in the place where these particular shortcut keys are used, where rather than checking the hardcoded event values you look them up in the keymap.
Author
Member

The eye dropper, insert keyframe, insert driver, etc are the only things that need to be configurable I think. They're so closely related to similar behaviors, such as Insert Keyframe in the 3D View.

The other things, like backspace don't need to be configured. I think so far as the user is concerned those are basically OS level keys (even if they're not technically.)

The eye dropper, insert keyframe, insert driver, etc are the only things that need to be configurable I think. They're so closely related to similar behaviors, such as *Insert Keyframe* in the 3D View. The other things, like backspace don't need to be configured. I think so far as the user is concerned those are basically OS level keys (even if they're not technically.)

Added subscriber: @Nadirchibane

Added subscriber: @Nadirchibane

It would be a better idea to add a button on the menu window Header. this button when clicked shows a ghost window (=with transparency), this window contain a keyboard layout where you can see and/or configure your key map.

It would be a better idea to add a button on the menu window Header. this button when clicked shows a ghost window (=with transparency), this window contain a keyboard layout where you can see and/or configure your key map.
Author
Member

@Nadirchibane I'm not sure I understand what you're referring to. But I believe you're suggesting a different way of accessing and editing the user keymap? If so that's completely unrelated to this task.

@Nadirchibane I'm not sure I understand what you're referring to. But I believe you're suggesting a different way of accessing and editing the user keymap? If so that's completely unrelated to this task.
Jonathan Williamson removed their assignment 2013-11-24 18:07:15 +01:00
dennyrahadian commented 2014-01-02 21:15:20 +01:00 (Migrated from localhost:3001)

Added subscriber: @dennyrahadian

Added subscriber: @dennyrahadian
dennyrahadian commented 2014-01-02 21:15:20 +01:00 (Migrated from localhost:3001)

How about making the XYZ axes shortcuts remappable?
I think it's quite reasonable for (at least) two reasons:

  • Those who had experience with Maya usually prefers to use ZXC instead of XYZ since it's much easier to reach.

  • I heard a lot of complains from people who are using non conventional keyboards (like TrulyErgonomics or Ergodox), saying that they'd rather use the manipulator widget since the Y key is located too far.

How about making the XYZ axes shortcuts remappable? I think it's quite reasonable for (at least) two reasons: - Those who had experience with Maya usually prefers to use ZXC instead of XYZ since it's much easier to reach. - I heard a lot of complains from people who are using non conventional keyboards (like TrulyErgonomics or Ergodox), saying that they'd rather use the manipulator widget since the Y key is located too far.

Added subscriber: @0o00o0oo

Added subscriber: @0o00o0oo

I'd like to add that trackball rotate and edge slide both also seem to be hard-coded.
If they could be changed, it'd also provide a workaround until the "event system" issue is resolved (#40537)

I'd like to add that **trackball rotate** and **edge slide** both also seem to be hard-coded. If they could be changed, it'd also provide a workaround until the "event system" issue is resolved (#40537)

Added subscriber: @michaelknubben

Added subscriber: @michaelknubben
Julian Eisel self-assigned this 2015-05-05 16:24:23 +02:00
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Finally found a surprisingly easy way to support operators with custom keymaps for UI (84b1d67b6, d10f54ee75) and added support for customizing shortcuts of...

Will close this task for now, if there are shortcuts that should get customization support we can do that as part of usual development. Don't think we really need to have a task sitting around at least.

Finally found a surprisingly easy way to support operators with custom keymaps for UI (84b1d67b6, d10f54ee75) and added support for customizing shortcuts of... * Keyframe operators (e8d953000) * Driver and Keying Set operators (f6c09eadf0) * Eyedropper shortcut (e9bcdcdbbd) ![ui_keymap.png](https://archive.blender.org/developer/F365960/ui_keymap.png) Will close this task for now, if there are shortcuts that should get customization support we can do that as part of usual development. Don't think we really need to have a task sitting around at least.
Author
Member

Fantastic, thanks @JulianEisel!

Fantastic, thanks @JulianEisel!
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
7 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#37520
No description provided.