GPencil: Shortcuts in Draw Mode are hardcoded #88171

Open
opened 2021-05-10 11:18:04 +02:00 by Falk David · 8 comments
Member

Multiple keys in the gpencil_draw_modal function are hardcoded and (some) don't show up in the info bar. This makes it impossible for the user to know what certain keys do as well as impossible to change them in the keymap. All of those keys should be in the keymap with the default keys set as they are now.

Here is a list of these (hardcoded) shortcuts:

  • {key Enter}, {key Pad_Enter}, {key Esc}, {key Space}, {key Ctrl Z} (?): Confirm
  • {key Mousewheel_Up}, {key Pad_Plus}: Increase size of eraser
  • {key Mousewheel_Down}, {key Pad_Minus}: Decrease size of eraser
  • {key O}: Set center of guide
  • {key V}: Turn off speed guide
  • {key M}: Alternate or flip guide direction
  • {key L}: Turn on line guide; {key Ctrl L}: Turn on line guide with angle = 0; {key Alt L}: Turn on line guide with last angle
  • {key C}: Turn on circular guide
  • {key K}: Turn line guide clockwise
  • {key J}: Turn line guide anti-clockwise
Multiple keys in the `gpencil_draw_modal` function are hardcoded and (some) don't show up in the info bar. This makes it impossible for the user to know what certain keys do as well as impossible to change them in the keymap. All of those keys should be in the keymap with the default keys set as they are now. Here is a list of these (hardcoded) shortcuts: - {key Enter}, {key Pad_Enter}, {key Esc}, {key Space}, {key Ctrl Z} (?): Confirm - {key Mousewheel_Up}, {key Pad_Plus}: Increase size of eraser - {key Mousewheel_Down}, {key Pad_Minus}: Decrease size of eraser - {key O}: Set center of guide - {key V}: Turn off speed guide - {key M}: Alternate or flip guide direction - {key L}: Turn on line guide; {key Ctrl L}: Turn on line guide with angle = 0; {key Alt L}: Turn on line guide with last angle - {key C}: Turn on circular guide - {key K}: Turn line guide clockwise - {key J}: Turn line guide anti-clockwise
Falk David self-assigned this 2021-05-10 11:18:04 +02:00
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Member
Added subscribers: @filedescriptor, @antoniov, @pepe-school-land, @mendio

B key must be removed...we have the I menu for that.

`B` key must be removed...we have the `I` menu for that.

I'm going to remove Bkey new frame.

I'm going to remove `B`key new frame.
Author
Member

@antoniov Thanks!

@antoniov Thanks!

Maybe I miss something, but AFAIK the keymaps are used to invoke an operator with a group of parameters, but these keymaps are used inside the Modal loop of the operator, so the operator is already running and cannot be called again, so I don't see how define the keymaps, except something I don't know exist in the keymap API.

Maybe I miss something, but AFAIK the keymaps are used to invoke an operator with a group of parameters, but these keymaps are used inside the Modal loop of the operator, so the operator is already running and cannot be called again, so I don't see how define the keymaps, except something I don't know exist in the keymap API.

@mendio commented me that maybe we can reduce these functionality and remove some keymaps.

@mendio commented me that maybe we can reduce these functionality and remove some keymaps.

Besides that they are hardcoded, IMO there are excessive shortcuts assigned to turn on Guides (L, CTRL+L, ALT+L and C) it should be enough to have just only one shortcut to toggle ON/OFF the use of the guides in general, there is no need to use precious key shortcuts to turn on every Guide type.

Besides that they are hardcoded, IMO there are excessive shortcuts assigned to turn on Guides (L, CTRL+L, ALT+L and C) it should be enough to have just only one shortcut to toggle ON/OFF the use of the guides in general, there is no need to use precious key shortcuts to turn on every Guide type.
Philipp Oeser removed the
Interest
Grease Pencil
label 2023-02-09 15:19:28 +01:00
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
3 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#88171
No description provided.