Duplicate Addons Hotkeys #45578

Closed
opened 2015-07-27 17:40:45 +02:00 by Anton · 15 comments

System Information
OSX 10.9.5 AMD Radeon HD6770M

Blender Version
Broken: 2.7.5 cdf2dbe

Short description of error
Duplicated Addons Hotkeys

Exact steps for others to reproduce the error
1 Install any addon
2 Save (Export) custom hotkeys *.py file
3 Load (Import) custom hotkeys *.py file
4 In Hotkeys List - addon hotkey will be duplicated

**System Information** OSX 10.9.5 AMD Radeon HD6770M **Blender Version** Broken: 2.7.5 cdf2dbe **Short description of error** Duplicated Addons Hotkeys **Exact steps for others to reproduce the error** 1 Install any addon 2 Save (Export) custom hotkeys *.py file 3 Load (Import) custom hotkeys *.py file 4 In Hotkeys List - addon hotkey will be duplicated
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @AntohaRDNS

Added subscriber: @AntohaRDNS

Added subscribers: @mont29, @ideasman42, @Sergey

Added subscribers: @mont29, @ideasman42, @Sergey

Guess export operator should ignore addons.

@mont29 or @ideasman42, is it something doable?

Guess export operator should ignore addons. @mont29 or @ideasman42, is it something doable?

Looked into the issue now, but i can not reproduce it. Was using Mesh.F2 addon as an example and after export/import there's only one keymap entry relevant to the addon.

@AntohaRDNS, please load factory settings and see if the issue still happens. If you manage to fail keymap again please provide full steps required for that.

Looked into the issue now, but i can not reproduce it. Was using Mesh.F2 addon as an example and after export/import there's only one keymap entry relevant to the addon. @AntohaRDNS, please load factory settings and see if the issue still happens. If you manage to fail keymap again please provide full steps required for that.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2015-09-11 11:57:48 +02:00

@Sergey don’t really think export should ignore addons' shortcuts… It's probably more to see with how addons handle their shortcuts (un)registering - more than often badly (Even F2, which seems to not remove original 'F' shortcut before adding its own, sigh).

Anyway, no news since one week, closing for now.

@Sergey don’t really think export should ignore addons' shortcuts… It's probably more to see with how addons handle their shortcuts (un)registering - more than often badly (Even F2, which seems to not remove original 'F' shortcut before adding its own, *sigh*). Anyway, no news since one week, closing for now.

Added subscriber: @AlanNorth

Added subscriber: @AlanNorth

Changed status from 'Archived' to: 'Open'

Changed status from 'Archived' to: 'Open'

I just ran into this bug while organizing my shortcuts. It's a bit weird to replicate but once you've replicated it it seems to keep doing it regardless of whether you do a reset (if you choose the same key config again).

Steps to Reproduce
Reset Blender, including the version folder in AppData to delete all key configs.
Enable an add-on that adds shortcuts (I used Mesh: F2)
It should now appear under Add-ons > 3D View > Mesh.
Disable the shortcut.
Create a new preset (e.g. Test).
Restore the section. A duplicate enabled shortcut should appear.
Export the config as Test.
Import the config. Another duplicate entry will appear.
Repeated importing/exporting will keep adding duplicates even if the disabled shortcut was removed.

Just importing the same file again and again does not do this.

Also sometimes the duplicates seem to hide behind the restore, if that makes sense, but I haven't been able to replicate the exact circumstances.

I don't know if it's the fault of the add-ons but lots of add-ons shipped with Blender do this. I'm just starting to learn scripting but F2 from what I can see looks to be registering/unregistering as suggested in the Add-on tutorial in the manual . A few add-ons give you the option to not register hotkeys but most don't. I wish I could block them altogether or at least be prompted what to do when an existing shortcut is being overridden or reactivated. Is there even a way for add-ons to check if they're overwriting an existing shortcut because the manual tutorial seems to imply there isn't and writers should just be careful to pick an obscure enough hotkey which is likely to cause problems for users who don't stick to the default keymaps.

I just ran into this bug while organizing my shortcuts. It's a bit weird to replicate but once you've replicated it it seems to keep doing it regardless of whether you do a reset (if you choose the same key config again). **Steps to Reproduce** Reset Blender, including the version folder in AppData to delete all key configs. Enable an add-on that adds shortcuts (I used Mesh: F2) It should now appear under Add-ons > 3D View > Mesh. Disable the shortcut. Create a new preset (e.g. Test). Restore the section. A duplicate enabled shortcut should appear. Export the config as Test. Import the config. Another duplicate entry will appear. Repeated importing/exporting will keep adding duplicates even if the disabled shortcut was removed. Just importing the same file again and again does not do this. Also sometimes the duplicates seem to hide behind the restore, if that makes sense, but I haven't been able to replicate the exact circumstances. I don't know if it's the fault of the add-ons but lots of add-ons shipped with Blender do this. I'm just starting to learn scripting but F2 from what I can see looks to be registering/unregistering as suggested in the [Add-on tutorial in the manual ](https://docs.blender.org/manual/en/dev/advanced/scripting/addon_tutorial.html). A few add-ons give you the option to not register hotkeys but most don't. I wish I could block them altogether or at least be prompted what to do when an existing shortcut is being overridden or reactivated. Is there even a way for add-ons to check if they're overwriting an existing shortcut because the manual tutorial seems to imply there isn't and writers should just be careful to pick an obscure enough hotkey which is likely to cause problems for users who don't stick to the default keymaps.
Bastien Montagne removed their assignment 2018-07-12 11:29:47 +02:00

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sybren A. Stüvel self-assigned this 2020-01-30 13:48:33 +01:00

I've tried to reproduce it with current Blender 2.82 alpha (87b551e836) but I cannot. I'll assume this has been resolved.

Please try the latest daily build: https://builder.blender.org/download/

If the problem persists, please let us know so we can re-open the report. Don't forget to mention the specific version you tested again.

I've tried to reproduce it with current Blender 2.82 alpha (87b551e8365954d03d1c27303b9776deefd4e4d3) but I cannot. I'll assume this has been resolved. Please try the latest daily build: https://builder.blender.org/download/ If the problem persists, please let us know so we can re-open the report. Don't forget to mention the specific version you tested again.
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

I've tried to reproduce it with current Blender 2.82 alpha (87b551e836) but I cannot. I'll assume this has been resolved.

Not resolved yet :) blender/blender-addons#88518 (Add-ons with keymap entries generate duplicates in keymap)

> I've tried to reproduce it with current Blender 2.82 alpha (87b551e8365954d03d1c27303b9776deefd4e4d3) but I cannot. I'll assume this has been resolved. Not resolved yet :) blender/blender-addons#88518 (Add-ons with keymap entries generate duplicates in keymap)
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
6 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#45578
No description provided.