Closed Bug 374700 Opened 17 years ago Closed 10 years ago

finance.yahoo.com - Pressing cmd key moves focus due to confusion over DOM_VK_META

Categories

(Web Compatibility :: Site Reports, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: fmuhlenberg, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a3pre) Gecko/20070320 Minefield/3.0a3pre
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a3pre) Gecko/20070320 Minefield/3.0a3pre

I'm looking at stock quotes and I scroll down the page to view the news.
I want to display the news story in a new tab (command-click)
I push the left Command key and the browsers jumps up to the Quotes text field at the top of the screen.

Reproducible: Always

Steps to Reproduce:
1. Go to URL provided
2. Scroll to the stock news stories such that the quotes text field is off screen
3. Click on any white space on the page (this clears the focus the quotes text field might have)
4) Click the left Command (Apple) key
Actual Results:  
The screen jumps to the quote text field as it gains cursor focus.

Expected Results:  
The quotes text field should not gain focus.

This bug has occurred in Mozilla 2.x since its inception.  And currently occurs in Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

I transitioned to Minefield 3.0a because it did not demonstrate this behavior.
Recently, within the last two days or so, this behavior now occurs in Minefield.

Curiously, when pressing the right Command (Apple) key, Minefield behaves as expected, ie no scrolling.  On Mozilla 2.0.0.3, either Command (Apple) key demonstrates the problem.


Mac OS 10.4.9
Dual 800 MHz PPC G4
The page uses an onkeydown event handler whose purpose is to focus the textbox when you type a printable character.  The script resides at
http://us.js1.yimg.com/us.js.yimg.com/lib/fi/utilities_0.1.1.js .
It seems to expect all modifier keyCodes to be between 16 and 20.

You can test what keyCodes a page is given using
<body><input onkeydown="document.body.appendChild(document.createTextNode(',' + event.keyCode))">

left shift  = 16
left ctrl   = 17
left opt    = 18
left cmd    = 224

right shift = 0
right cmd   = 0

In contrast, Safari doesn't send keydown events for modifier keys at all.

Is Firefox correct to send left cmd as 224?
Assignee: nobody → events
Component: Keyboard Navigation → DOM: Events
Product: Firefox → Core
QA Contact: keyboard.navigation → ian
KeyEvent.DOM_VK_META == 224 as specified by the DOM 3 Events working draft, so I think this is a site bug.
Assignee: events → english-us
Status: UNCONFIRMED → NEW
Component: DOM: Events → English US
Ever confirmed: true
Product: Core → Tech Evangelism
QA Contact: ian → english-us
Summary: Clicking Command (Apple) key causes text widget to gain focus and jumps screen position → finance.yahoo.com - Pressing cmd key moves focus due to confusion over DOM_VK_META
FWIW, this will also break FAYT, too; Yahoo will need to exclude / (which should be fine, since it's not valid in ticker symbols, anyway).  Oh, that's bug 337904....
Blocks: 121228
drives me friggin' nuts...so irritating to remember this behavior--and Firefox handles so many other of Yahoo's offerings better than Safari...

One press of the Command key puts the cursor into the first Text entry area which is (usually) closer to the top of a page, and then the page moves to show the active location / text entry space.

Thanks for working on this!
I contacted Yahoo! Finance support about this issue last week and they replied that Mac OS X is not an officially supported operating system:

-----------------------------

Hello Ryan,

Thank you for writing Yahoo! Finance.

We appreciate your question in regards to browsers and operating systems
which are currently supported within Yahoo! Finance. To ensure the best
viewing experience in Y! Finance please make sure that you meet the
following system requirements:

Windows 98/2000

Microsoft Internet Explorer 6
Mozilla Firefox 1.5.*/2.0.*

Microsoft Windows XP

Microsoft Internet Explorer 6
Microsoft Internet Explorer 7
Mozilla Firefox 1.5.*/2.0.*

You can download the latest of these supported browsers by visiting:

Internet Explorer 6:

  -  http://www.microsoft.com/downloads/details.aspx?FamilyID=1e1550cb-5e5d-48f5-b02b-20b602228de6&DisplayLang=en

Internet Explorer 7:

  -  http://www.microsoft.com/downloads/details.aspx?FamilyID=9ae91ebe-3385-447c-8a30-081805b2f90b&DisplayLang=en

Firefox:

  -  http://www.mozilla.com/en-US/firefox/

* Please note that Macintosh is currently unsupported by Yahoo! Finance
at this time.

Keeping checking back with us as your satisfaction is always our goal.
It is input like yours which helps us continuously improve and maintain
Yahoo! Finance as the best place on the planet to stay informed with the
latest in financial news and information!

Thank you again for contacting Yahoo! Finance.

Regards,

Derek

Yahoo! Finance Customer Care


----------------------------

So messed up.
I've filled this as a bug in the Yahoo bug database.  Thanks to Jessee for the heads-up.
The right command key is working correctly, ie. not moving the focus, when you try to copy. PD
I find that still both Command keys yield the same response.  Perhaps Peedeemail is using some system modifier, but it absolutely is still a problem with both for me.

Load any stock's message board, here's a quick link example:  http://messages.finance.yahoo.com/mb/AAPL

now, either use a scroll wheel, or the scroll sidebar to move down the page, then hold down EITEHR command key as if you were going to mouse click on a visible link and the page will jump back to the top as the focus shifts to a the first open text entry field which in this case is the "Get Quotes" field where lo-and-behold the cursor has somehow appeared even though you've never clicked it.
INCOMPLETE due to lack of activity since the end of 2009.

If someone is willing to investigate the issues raised in this bug to determine whether they still exist, *and* work with the site in question to fix any existing issues, please feel free to re-open and assign to yourself.

Sorry for the bugspam; filter on "NO MORE PRE-2010 TE BUGS" to remove.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
Alas, this is still present on the individual quotes page, per comment 10 (but not on the URL provided when the bug was filed).
Don't we have some Yahoo contacts who could work on this?
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Blocks: yahoo.com
No longer blocks: 121228
Tested and INVALID. 
The site is working well.
Assignee: english-us → nobody
Status: REOPENED → RESOLVED
Closed: 13 years ago10 years ago
Component: English US → Desktop
Resolution: --- → INVALID
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.