Closed Bug 420048 Opened 16 years ago Closed 16 years ago

Clipboard keyboard shortcuts frequently fail

Categories

(Core :: Widget: Cocoa, defect, P2)

x86
macOS
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: mossop, Assigned: jaas)

Details

(Keywords: regression)

I've been hitting this for a while now, no way to reproduce but frequently the clipboard keyboard shortcuts stop working. The context menu and edit menu still work just fine.
Flags: blocking-firefox3?
This is Mac-specific?

I look forward to hearing about ways to reproduce it :-)
This looks like bug 382138 which has str.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
For what it's worth, I've been seeing this for a while too (I was even about to file a bug on it since I just got bit by it!)
Flags: blocking-firefox3?
Status: RESOLVED → VERIFIED
Are you guys seeing this _in Minefield_?

If so this isn't a dup of bug 382138.
yes, I'm seeing it in Minefield
Shawn, please give a specific and precise STR.

Here.
See comment 0.  Sometimes it works, sometimes it doesn't.  I haven't yet identified what I did to make it happen, but next time I see it, I'll try to reproduce again.
> See comment 0.

Comment 0 here?  It has far too little information.

Bug 382138 comment 0?  That's specific to Thunderbird or the Mail part
of SeaMonkey.
here.  Basically the copy and paste keyboard shortcuts don't always works.  I'll here the system beep at me, and go do the context menu and the command is enabled (at which point, I just go ahead and use it).  I'll see if opening the context menu takes care of it (as in the keyboard shortcuts work) next time I see it.
(In reply to comment #9)

OK, you've given me something specific enough that I might now
actually be able to reproduce this problem.
This isn't a dup of bug 382138.
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
I've seen this to. Funny if it is (as seems likely) bug 382138.

/be
(In reply to comment #11)
> This isn't a dup of bug 382138.

Is it possible that add-ons such as adblockplus could be involved? I have abp, linky, chatzilla, personas, something called JavaScript Debugger 0.9.87.2.

/be
I saw this on a nightly towards the middle of last week; updating seems to have fixed it.  At the time, though, when it happened I was rarely able to keep trying the shortcut and eventually get it through.  I haven't experienced it again since that particular build, though.
(In reply to comment #13)
> (In reply to comment #11)
> > This isn't a dup of bug 382138.
> 
> Is it possible that add-ons such as adblockplus could be involved? I have abp,
> linky, chatzilla, personas, something called JavaScript Debugger 0.9.87.2.

The only one of those that I have installed is the JavaScript Debugger.
(In reply to comment #12)

> Funny if it is (as seems likely) bug 382138.

If this bug doesn't have the same symptoms and the same cause as bug
382138, it isn't the same bug.

As I say in bug 382138 comment #6, problems very like those reported
there once did happen with Minefield, but they were fixed long ago.

But I wish I'd written down their numbers in that comment, because now
I can't find them :-(

In any case, it's much better to assume this bug is different from bug
392138 until it can be proved otherwise.  I often see people dup new
bugs to ancient, unresolved ones -- and they're almost always wrong.
Mixing up bugs like this makes life much harder for the people who
(like me) have to resolve them.
I'll try running JavaScript Debugger for a while to see if that makes
a difference.

I don't need any more convincing that this is a real problem (though
where the blame lies is still unclear).  But before anything else, I
need clear, precise steps to reproduce.

Come on, you guys!
For what it's worth, I'm not running the JavaScript Debugger and I'm still seeing it.
> For what it's worth, I'm not running the JavaScript Debugger and I'm
> still seeing it.

Thanks, Shawn.  As far as I'm concerned this absolves the JavaScript
Debugger.

But I still need good STRs!
Assignee: nobody → smichaud
Status: REOPENED → NEW
This is a bit of a stretch ... but this bug may be related to bug
406195.

That bug concerns the operation of cmd-c and cmd-v in a Flash "movie".
But you guys haven't been crystal clear about when you see this
problem, so anything's possible.
I've seen this in chrome UI like the bookmark properties and DOMi, webpage textboxes, all over.
Thanks for the CC... Bug 406195 was (and still is) resolved for me.

Interestingly enough, I've been struck with this bug the past 4-5 days as well. And no, neither can I give specific steps to reproduce. I have had it happen both in Firefox (self-checkout/compile) and Thunderbird (self-checkout/compile). It has happened maybe 3 or 4 times.

The only time I can provide specifics steps:
1) CMD-C on highlighted location bar in Firefox (eg: http://blah.com/blah.html)
2) CMD-TAB to switch to Thunderbird
3) CMD-V in Thunderbird email compose and got a bonk
4) Typed some random QWERTY in Tbird compose and they appear just fine
5) CMD-TAB to go back to Firefox 
6) CMD-V in a new tab Firefox location bar and it pasted
7) CMD-TAB to switch to Thunderbird
8) CMD-V in Thunderbird email compose and got a bonk
9) Started a console, and CMD-V pasted into bash
10) Closed Thunderbird, restarted it, Compose and CMD-V worked just fine

Perhaps some type of focus issue? Well, except for the fact that I could type without a mouse click.
If you go to http://www.flashtexteditor.com/ and do the "Try Demo" you'll get varying results trying to use Cut/Copy/Paste from 1) Keyboard Shortcuts, 2) Menu Bar, and 3) Right Click Context Menu. Though that has been consistent for a year (Bug 375887)... so as Steven says in Comment #16 ... it is probably totally unrelated and just confusing this new and specific issue.
I admit sometimes Flash may have been involved in the intermittent problem, and copy/paste shortcuts -- doesn't explain Mossop's experience, or probably other of my experiences.

Is there a bug on the Flash vs. shortcuts issue? Jay Moran is right, if it is separate it should not be confusing this bug. But it needs to get tracked.

/be
Bug 375997 is the Flash vs. Shortcuts Problem
(In reply to comment #25)
> Bug 375997 is the Flash vs. Shortcuts Problem

Argh. Bug 375887
Duh, sorry I missed the original bug citation -- thanks for repeating that.

/be
(In reply to comment #22)

Jay, I can reproduce your STR, and have come up with a simplified
version that doesn't involve Minefield.  So on the face of it, this
looks like a Thunderbird bug ... but seeing it described might ring a
bell with someone listening here.

1) Run the AppleScript Script Editor (Applications : AppleScript :
   Script Editor).

2) Type the following into the "untitled" window and click the "Run"
   button:

   set the clipboard to

3) Type the following into the "untitled" window and click the "Run"
   button:

   set the clipboard to	"xx"

4) Run Thunderbird and make sure your current account is set to
   "Compose messages in HTML format".

5) Choose "Message : New Message" and click in the message body.

6) Cmd+v won't do anything, but you can type in the body.

   Open the Edit menu and notice that, while "Paste without
   Formatting" is highlighted, "Paste" is greyed out.

7) Click in the "Subject" box.

8) Click once more in the message body.

   Now Cmd-v will work, and "Paste" will no longer be greyed out in
   the Edit menu.
note: while I've seen this in thunderbird, I've also hit it while talking to people with adium.  I go to grab the current url and paste it into the conversation, and it doesn't copy [or paste] (I don't always have my speakers on, so I don't always know when the copy fails).
When the problem happens in Adium, is there more than one "Paste" item
in the Edit menu?  And is plain "Paste" greyed out?
By the way, I hear no beep on OS X 10.5.2 when cmd-v fails.

I suspect you only get the beep on 10.4.X.
(In reply to comment #30)
> When the problem happens in Adium, is there more than one "Paste" item
> in the Edit menu?  And is plain "Paste" greyed out?
I haven't hit it since this bug was filed, but next time I do I swear I'll get you information!

(In reply to comment #31)
> I suspect you only get the beep on 10.4.X.
I'm on 10.4 on this machine.
I got the order of my steps wrong in my STR in comment #28.  Here it
is over again, in the correct order:

1) Run the AppleScript Script Editor (Applications : AppleScript :
   Script Editor).

2) Type the following into the Script Editor's "untitled" window and
   click the "Run" button:

   set the clipboard to

3) Run Thunderbird and make sure your current account is set to
   "Compose messages in HTML format".

4) Choose "Message : New Message" and click in the message body.

5) Type the following into the Script Editor's "untitled" window and
   click the "Run" button:

   set the clipboard to "xx"

6) Switch back to Thunderbird (using the mouse or the keyboard) and
   try cmd-v in the message body.  Nothing will happen, but you can
   type in the message body.

   Open the Edit menu and notice that, while "Paste without
   Formatting" is highlighted, "Paste" is greyed out.

7) Click in the "Subject" box.

8) Click once more in the message body.

   Now Cmd-v will work, and "Paste" will no longer be greyed out in
   the Edit menu.
I've found the regression range for my STR in comment #33:

The thunderbird-2008-01-28-03-trunk nightly doesn't have the problem,
but the thunderbird-2008-01-29-03-trunk nightly does have it.  This
probably means that the patch for bug 376077 caused this regression,
and that this is a Cocoa widgets problem.

I've got other bugs I'm working on before this one.  But once I get to
this I'll start picking through the patch for bug 376077 to see where
the problem is.

Of course, I'm assuming that the STRs from comment #22 and comment #33
are the problem that was originally reported ... but I think this is
reasonable until I find out otherwise.

Thanks again, Jay, for your STR from comment #22.  You've saved the
day!

(Interestingly, the plain "Paste" item is greyed in step 6 (from
comment #33) even when cmd-v "works".  That must be yet another bug
... though a less serious one.)
Assignee: smichaud → joshmoz
Component: Keyboard Navigation → Widget: Cocoa
Product: Firefox → Core
QA Contact: keyboard.navigation → cocoa
Assignee: joshmoz → smichaud
Flags: blocking1.9?
Flags: blocking1.9? → blocking1.9+
Priority: -- → P2
We landed a fix for Thunderbird in bug 382138 which took care of a bunch of keyboard shortcuts that didn't work in Thunderbird. Hopefully that took care of at least part of this problem.

I don't doubt that there are cases when keyboard shortcuts don't work and they should, but this bug is vague and gives little idea of how common or serious the problem is as of now. A few big fixes to keyboard shortcut handling have landed since this was filed. I am marking this blocking1.9-, we can make further blocking decisions about bugs that have specific, reproducible reports.
Flags: blocking1.9+ → blocking1.9-
I landed the final patch on bug 398514, I believe that fixed the remaining issues with clipboard keyboard command shortcuts failing.
Status: NEW → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: smichaud → joshmoz
Status: REOPENED → NEW
Status: NEW → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.