Menu

#43 Escape key does not work

closed
None
3
2021-03-01
2010-12-14
rednammoc
No

By pressing [ENTER] at a node you get into edit-mode. By pressing [ESC] you should be in traversal-mode and the changes should be undone.
By pressing [INSERT] a new node appears and you get into edit-mode. By pressing [ESC] the node should be undone and you should be in traversal-mode.

Discussion

  • In Silmaril

    In Silmaril - 2010-12-15
    • assigned_to: nobody --> insilmaril
    • priority: 5 --> 3
     
  • In Silmaril

    In Silmaril - 2010-12-15

    Hm, just clearing the LineEdit might leave an empty branch, that depends on settings.

     
  • In Silmaril

    In Silmaril - 2011-01-14

    Not trivial due amount of required UNDOs

     
  • rednammoc

    rednammoc - 2011-01-15

    If you connect Escape-Key and LineEdit probably this function can be called:

    void Main::editHeadingEscaped()
    {
    if (lineedit->isVisible())
    {
    bool ok;
    QPoint p; //Not used here, only to find out pos of branch
    QString s = currentMapEditor()->getHeading(ok,p);
    if (ok)
    {
    lineedit->setText(s);
    editHeadingFinished();
    } // nothing will happen when escape-key was pressed and error occured getting last heading.
    }
    }

     
  • rednammoc

    rednammoc - 2011-02-01

    Any work in progress on that?

     
  • In Silmaril

    In Silmaril - 2021-03-01

    works meanwhile. (at least for me ;-) )

     
  • In Silmaril

    In Silmaril - 2021-03-01
    • status: open --> closed
    • Group: --> Next_Release_(example)