FabGL icon indicating copy to clipboard operation
FabGL copied to clipboard

`LineEditor.onSpecialChar` always triggers `CursorUp`

Open benedetto73 opened this issue 1 year ago • 0 comments

LineEditor.onSpecialChar mistakenly always triggers LineEditorSpecialChar::CursorUp, also when CursorDown is pressed.

Root cause is a simple typo in LineEditor::edit: link

      switch (c) {
        // "ESC [ A" : cursor Up
        case 'A':
          performCursorUp();
          m_state = 0;
          break;

        // "ESC [ B" : cursor Down
        case 'B':
          performCursorUp();
          m_state = 0;
          break;

benedetto73 avatar Nov 30 '23 18:11 benedetto73