Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl+C and Ctrl+X no longer work in forms for Notepad++ 8.6.1 and newer. #64

Open
molsonkiko opened this issue Feb 7, 2024 · 7 comments

Comments

@molsonkiko
Copy link
Contributor

To replicate the issue:

  1. Install NavigateTo 2.7.0 on Notepad++ 8.6.1 (32bit or 64bit, shouldn't matter).
  2. Copy some text to the clipboard (call this Original selection)
  3. Open the NavigateTo window in any document.
  4. Select some text in the NavigateTo textbox (call this NavigateTo selection)
  5. Copy the NavigateTo textbox selection using Ctrl+C.
  6. Observe that Original selection is still in the clipboard.
  7. Cut the NavigateTo textbox selection using Ctrl+X.
  8. Observe that Original selection is still in the clipboard.
  9. If desired, try doing similar things on the settings form. You should find that Ctrl+C and Ctrl+X are broken everywhere.

My proposed solution

You can fix this issue by following the process I describe in my NppCSharpPluginPack.

If you like, I can submit a PR. While this issue isn't hard to fix, it is annoying and finicky to fix because you have to visually compare the order of Controls.Add calls to the desired tab order for every form in your plugin.

@young-developer
Copy link
Owner

Hm. I tested it on my machine with v.8.6.2 and I am able to copy and cut text from searchbox without any issues.

Notepad++ v8.6.2   (64-bit)
Build time : Jan 14 2024 - 02:16:00
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : 
Admin mode : ON
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 11 Home (64-bit)
OS Version : 23H2
OS Build : 22631.3085
Current ANSI codepage : 1252
Plugins : 
    mimeTools (3)
    NavigateTo (2.7)
    NppConverter (4.5)
    NppExport (0.4)

@young-developer
Copy link
Owner

image

@molsonkiko
Copy link
Contributor Author

molsonkiko commented Feb 7, 2024

@young-developer

Hm. I tested it on my machine with v.8.6.2 and I am able to copy and cut text from searchbox without any issues.

Yes, I'm aware of this. However, if you go to Settings->Preferences...->Editing and uncheck Enable Copy/Cut line without selection after Step 2 of the above list, you will be able to reproduce this bug, unless you have text selected in your current document.

@young-developer
Copy link
Owner

I cant find such option:
image

@molsonkiko
Copy link
Contributor Author

molsonkiko commented Feb 7, 2024 via email

@young-developer
Copy link
Owner

I double-checked in 8.6.5 and I am still able to copy without any issues. @molsonkiko please could you retest?

@molsonkiko
Copy link
Contributor Author

molsonkiko commented Apr 2, 2024

The issue only manifests when you do the following:

  1. Select Setting->Preferences from the main menu
  2. Go to Editing 1 tab (note: in Notepad++ 8.6.2 to 8.6.4 this would be in the Editing tab)
  3. Uncheck Enable Copy/Cut Line without selection
  4. Make sure you do not have any text selected
  5. Try to use Ctrl+X or Ctrl+C to copy or cut from FrmNavigateTo or from the settings form

I do not know that it's really worthwhile to fix this issue, given what a small corner case this is. As noted here there are a bunch of disadvantages associated with fixing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants