|
|
@ -167,7 +167,7 @@ namespace Fungus.EditorUtils |
|
|
|
|
|
|
|
|
|
|
|
// EventType.contextClick doesn't register since we moved the Block Editor to be inside |
|
|
|
// EventType.contextClick doesn't register since we moved the Block Editor to be inside |
|
|
|
// a GUI Area, no idea why. As a workaround we just check for right click instead. |
|
|
|
// a GUI Area, no idea why. As a workaround we just check for right click instead. |
|
|
|
if (Event.current.type == EventType.mouseUp && |
|
|
|
if (Event.current.type == EventType.MouseUp && |
|
|
|
Event.current.button == 1) |
|
|
|
Event.current.button == 1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ShowContextMenu(); |
|
|
|
ShowContextMenu(); |
|
|
@ -290,7 +290,7 @@ namespace Fungus.EditorUtils |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//handle movement along our selection grid before something else eats our inputs |
|
|
|
//handle movement along our selection grid before something else eats our inputs |
|
|
|
if (Event.current.type == EventType.keyDown) |
|
|
|
if (Event.current.type == EventType.KeyDown) |
|
|
|
{ |
|
|
|
{ |
|
|
|
//up down to change selection / esc to clear field |
|
|
|
//up down to change selection / esc to clear field |
|
|
|
if (Event.current.keyCode == KeyCode.UpArrow) |
|
|
|
if (Event.current.keyCode == KeyCode.UpArrow) |
|
|
@ -315,14 +315,14 @@ namespace Fungus.EditorUtils |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Previous Command |
|
|
|
// Previous Command |
|
|
|
if ((Event.current.type == EventType.keyDown) && (Event.current.keyCode == KeyCode.PageUp)) |
|
|
|
if ((Event.current.type == EventType.KeyDown) && (Event.current.keyCode == KeyCode.PageUp)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
SelectPrevious(); |
|
|
|
SelectPrevious(); |
|
|
|
GUI.FocusControl("dummycontrol"); |
|
|
|
GUI.FocusControl("dummycontrol"); |
|
|
|
Event.current.Use(); |
|
|
|
Event.current.Use(); |
|
|
|
} |
|
|
|
} |
|
|
|
// Next Command |
|
|
|
// Next Command |
|
|
|
if ((Event.current.type == EventType.keyDown) && (Event.current.keyCode == KeyCode.PageDown)) |
|
|
|
if ((Event.current.type == EventType.KeyDown) && (Event.current.keyCode == KeyCode.PageDown)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
SelectNext(); |
|
|
|
SelectNext(); |
|
|
|
GUI.FocusControl("dummycontrol"); |
|
|
|
GUI.FocusControl("dummycontrol"); |
|
|
|