Skip to content

Esc key should abort "Reload" confirmation prompt #12264

@alankilborn

Description

@alankilborn

Description of the Issue

As a nicety, pressing the Esc key should dismiss the confirmation popup that appears in response to the "Reload from disk" command (or other such commands that produce a similar prompt), effectively answering "No" to the prompt.

Steps to Reproduce the Issue

  1. Activate a hardnamed file tab and make sure the file has an unsaved modification
  2. Right-click the tab and choose Reload
  3. Confirmation appears:
    image
  4. Press the Esc key.

Some Alternative Steps

  1. Activate a hardnamed file tab and make sure the file has an unsaved modification
  2. Externally modify and save the hardnamed file, then switch back to the file in Notepad++
  3. Confirmation appears:
    image
  4. Press the Esc key.

Some more Alternative Steps

  1. Activate a hardnamed file tab and make sure the file is saved
  2. Externally modify and save the hardnamed file, then switch back to the file in Notepad++
  3. Confirmation appears:
    image
  4. Press the Esc key.

Expected Behavior

The dialog box to close and my file NOT being reloaded in Notepad++.

Actual Behavior

Nothing happens.

Debug Information

Notepad++ v8.4.6 (64-bit)
Build time : Sep 25 2022 - 19:51:39
Path : C:\...\npp.8.4.6.portable.x64\notepad++.exe
Command Line : -titleAdd="8.4.6 64-bit" -multiInst
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 21H2
OS Build : 19044.1889
Current ANSI codepage : 1252
Plugins :
mimeTools (2.8)
NppConverter (4.4)
NppExport (0.4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions