sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

An open dialog box from another window overrides the clipboard when copying

Open jedkirby opened this issue 12 years ago • 8 comments

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.

jedkirby avatar Jun 09 '14 13:06 jedkirby

Does this also happen with ST3?

FichteFoll avatar Jun 09 '14 21:06 FichteFoll

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.

jedkirby avatar Jun 10 '14 07:06 jedkirby

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   
---------------------------

FichteFoll avatar Jun 10 '14 11:06 FichteFoll

Confirmed, btw, is standard behaviour on windows to CTRL+C any dialog and that will copy the text.

titoBouzout avatar Jun 10 '14 11:06 titoBouzout

Closing as it's standard Windows behaviour.

jedkirby avatar Apr 10 '17 13:04 jedkirby

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.

FichteFoll avatar Apr 24 '17 19:04 FichteFoll

other problems related to having a modal dialog open in another ST window have been reported at https://github.com/SublimeTextIssues/Core/issues/1303

keith-hall avatar Jun 05 '17 11:06 keith-hall

Still present in ST4057.

deathaxe avatar Dec 01 '19 13:12 deathaxe