Skip to content

[BUG] Inverted Logic: 'Switch to next document' acts as 'Previous' in MRU stack (v8.9.1) #17873

@anodos-theophilos

Description

@anodos-theophilos

Is there an existing issue for this?

  • I have searched the existing issues

Is the issue reproducible in Notepad++ without plugin?

  • I have tried Notepad++ without plugin

Is the issue reproducible in portable version of Notepad++?

  • I have tried portable version of Notepad++

Does the issue affect SciTE?

  • I have tried SciTE

Description of the Issue

In Notepad++ v8.9.1 on Windows 11, the keyboard shortcuts for switching documents do not match their labels when MRU behavior is enabled. Pressing Ctrl + Tab as a shortcut for "switch to previous document" doesn't switch to the previous document it switches to different documents erratically. To achieve a standard "back-and-forth" toggle between the two most recently used tabs, the user must incorrectly assign Ctrl + Tab to "Switch to next document" rather than "Switch to previous document."

Steps To Reproduce

  1. Open 4 documents (Doc 1, 2, 3, 4).
  2. Go to Settings > Preferences > MISC. and ensure Enable MRU behavior is checked.
  3. Manually click Doc 2, then manually click Doc 4.
  4. Press the default shortcut for Switch to previous document (assigned to Ctrl + Shift + Tab).

Current Behavior

It does not reliably return to Doc 2; rather it erratically cycles through the document list instead.

Expected Behavior

The label Switch to previous document should be the action that returns the user to the most recently viewed tab in MRU mode.

Debug Information

Notepad++ v8.9.1 (64-bit)
OS: Windows 11

Anything else?

Workaround: Go to Shortcut Mapper and reassign Ctrl + Tab to "Switch to Next Document"
Result of Workaround: Pressing Ctrl + Tab now correctly switches to the previous document and toggles back and forth between Doc 2 and Doc 4.

thank you for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions