Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-58846

Using Up and Down arrow keys to navigate text in various contexts causes cursor to jump out of context

    XMLWordPrintable

Details

    Description

      1. Summary

      Using the up arrow to navigate the lines of text in the top row of a table causes the cursor to jump out and above the table, regardless of where the cursor is in any arbitrary number of lines. This happens in the row that is normally defaulted as the header, it also happens if the top row is de-designated as the header.

      The same effect also occurs with the down arrow key when navigating text in the last/bottom row of a table. It will jump out of the table just below the table, regardless of how many lines of text are in the cell.

      This issue also occurs with the "info" macro. Placing the cursor at any point in a multi-line text in an info box then using either the up or down arrow keys will "jump" the cursor outside of the info box.

      This issue also occurs for the "code block" macro. Placing the cursor at any point in a multi-line text in a code Block macro and hitting the "up" or "down" arrow keys will "jump" the cursor outside of the code block macro.

      This issue also occurs for any text inside a "column" macro. If the Column macro is nested inside a "section" macro, and the section has text just above or below the "column macro", the jump will skip all the way outside of the "Section" macro instead of just the "column" macro.

      Environment

      Cloud

      Steps to Reproduce

      === Table Top Row ===

      1. create a table on any page
      2. in the header row, in any cell
      3. create multiple lines of text
      4. Try to use the up arrow to go back up one line.

      === Table Bottom Row ===

      1. Create a table on any page
      2. In the Bottom row, create many lines of text.
      3. move the cursor back up the lines of text
      4. Use the down arrow to try and move down a line of text.

      === Info, Code block, and Column Macro ===

      1. add one of any of these macros to a page
      2. Place some multi-line text preferably with 5 or more lines.
      3. move the cursor to any line in the macro in the editor
      4. hit the up or down arrow key

      Expected Results

      === Table Top Row ===
      The Cursor moves up one line of text

      === Bottom Row ===
      The Cursor moves down one line of text

      === Info, Code block, and Column Macro ===
      The Cursor moves to the line above or below inside the macro.

      Actual Results

      === Top Row ===
      The Cursor "Jumps" outside and above the whole table.

      === Table Bottom Row ===
      The Cursor "Jumps" outside and below the whole table.

      === Info, Code block, and Column Macro ===
      The Cursor "Jumps" outside the macro, either above or below where the macro was.

      Workaround

      It is possible to avoid this issue by having an empty row on the top and bottom of the table that avoids the bug. You can remove the extra rows when you are done editing.

      You can also use shift + arrow keys in order to select the text line by line, then use a left/right arrow key to de-select the text and leave the cursor in the line that you want.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jlong@atlassian.com Jared Long
              Votes:
              44 Vote for this issue
              Watchers:
              46 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: