mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-23 03:18:03 +01:00
- [Preview Panel] Tools hotkey can not include modifier. - [Preview Panel] Add hotkey for right-side tools.
This commit is contained in:
parent
d10aa6818e
commit
cc296a4cd2
2 changed files with 7 additions and 4 deletions
|
@ -14,10 +14,10 @@
|
||||||
"Freeform": new hotkeySimple("Q"),
|
"Freeform": new hotkeySimple("Q"),
|
||||||
"Fill": new hotkeySimple("G"),
|
"Fill": new hotkeySimple("G"),
|
||||||
|
|
||||||
"Outline": new hotkeySimple("O", MOD_KEY.shift),
|
"Outline": new hotkeySimple("O", MOD_KEY.alt),
|
||||||
"Extrude": new hotkeySimple("E", MOD_KEY.shift),
|
"Extrude": new hotkeySimple("E", MOD_KEY.alt),
|
||||||
"Inset": new hotkeySimple("I", MOD_KEY.shift),
|
"Inset": new hotkeySimple("I", MOD_KEY.alt),
|
||||||
"Skew": new hotkeySimple("S", MOD_KEY.shift),
|
"Skew": new hotkeySimple("S", MOD_KEY.alt),
|
||||||
},
|
},
|
||||||
|
|
||||||
"Node_Mesh_Warp": {
|
"Node_Mesh_Warp": {
|
||||||
|
|
|
@ -98,6 +98,9 @@ function NodeTool(name, spr, contextString = instanceof(other)) constructor {
|
||||||
|
|
||||||
if(PANEL_PREVIEW.tool_current == self)
|
if(PANEL_PREVIEW.tool_current == self)
|
||||||
onToggle();
|
onToggle();
|
||||||
|
|
||||||
|
var _obj = getToolObject();
|
||||||
|
if(_obj) _obj.init(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
static onToggle = function() {}
|
static onToggle = function() {}
|
||||||
|
|
Loading…
Reference in a new issue