An open dialog box from another window overrides the clipboard when copying
I'm using Sublime Version 2.0.2 Build 2221. Here's a guide to replicating the bug:
- Open a new sublime window (Window 1).
- Create a new file and save it to the desktop.
- Keeping the window 1 & file open, open a new window (Window 2).
- Open a new file in Window 2.
- Go back to Window 1 and make a change in the file then click to close the file. It should produce a dialog saying "Save Changes?" - Leave this dialog open, do not click Yes/No/Cancel.
- Go back to Window 2, write some text, highlight it and copy then paste it
- The contents of the dialog from Window 1 will be shown.
Does this also happen with ST3?
Yes, just checked with ST3, Stable Channel, Build 3059 and get the same bug. I'm working on Windows 7 Professional. I've tested on a OSX on both ST2 and ST3 and it doesn't happen on those.
Okay, it seems that the message dialog that appears when trying to close an unsaved file swallows ctrl+c even from the other window. Here is the text that is copied despite being in the second window:
---------------------------
Save Changes?
---------------------------
test.txt has been modified, save changes?
---------------------------
Ja Nein Abbrechen
---------------------------
Confirmed, btw, is standard behaviour on windows to CTRL+C any dialog and that will copy the text.
Closing as it's standard Windows behaviour.
Re-opening, since it is probably not expected that an inactive dialog window grabs ctrl+c before ST. Until we have some sort of confirmation that it is impossible/hard to work around.
other problems related to having a modal dialog open in another ST window have been reported at https://github.com/SublimeTextIssues/Core/issues/1303
Still present in ST4057.