Bug Report + Solution: "Ctrl-S" in graph editor

FlowCanvas Forums Support Bug Report + Solution: "Ctrl-S" in graph editor

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2819
    joshcamas
    Participant

    Hello, I found an issue in FlowCanvas. Ctrl-S does not save the project, and after a little bit of digging, I found out why.

    In FlowNode.DoVerboseLevelGUI(), it checks if S is pressed:

    if ( e.type == EventType.KeyDown && e.keyCode == KeyCode.S)

    If this passes, it then uses the event. The problem with this is if the user presses Ctrl-S, it will be used by the verbose tool. This of course is bad!

    Instead, the checker should ensure “Ctrl” is not being pressed:

    if ( e.type == EventType.KeyDown && e.keyCode == KeyCode.S && !e.control)

     

    http://ardenfall.com

    #2825
    Gavalakis
    Keymaster

    Thanks 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.