Ticket #3 (closed defect: fixed)

Opened 3 years ago

Last modified 15 months ago

Mac OS X - 'Sort by' shortcuts show ? instead of ^

Reported by: maxence@… Owned by: maxence@…
Priority: low Milestone:
Component: UI > Main window Version: 0.8.1
Severity: minor Keywords:
Cc: ppagee@… Operating System: unspecified
Java version: unspecified

Description (last modified by Nicolas) (diff)

Under Mac OS X, the 'Sort by Extension', 'Sort by Name', 'Sort by Size' ... items of the 'View' menu indicate that their associated shortcut's modifier is Command ? (e.g. ?F3), even though the actual modifier is Control (). (see attached screenshot)
Note that the 'Sort by' shortcuts function normally and can be triggered with the Control key as they should. In other words, this is just a cosmetic issue.

The bug has been traced down to JCheckBoxMenuItem which doesn't properly render the Control modifier and replaces it by ?. The attached test class demonstrates the problem.

Additional information :
- this issue doesn't affect JMenuItem, only JCheckBoxMenuItem
- it only happens when the "apple.laf.useScreenMenuBar" property is set to "true"
- this issue has been last reproduced under Mac OS X 10.5 / Java 1.5 but has been there for as long as I can remember, probably since Mac OS X 10.1 or 10.2.
- no known workaround

This clearly is an issue in Apple's Java implementation. As such, this should be reported back to Apple.

::: REMIND :::

Attachments

JCheckBoxMenuItem_accelerator_bug.jpg (57.8 kB) - added by maxence@… 3 years ago.
Bug screenshot
CheckboxMenuItemAcceleratorBug.java (2.0 kB) - added by maxence@… 3 years ago.
CheckboxMenuItemAcceleratorBug?.java

Change History

Changed 3 years ago by maxence@…

Bug screenshot

Changed 3 years ago by maxence@…

Changed 3 years ago by maxence@…

  • attachments.description changed from JCheckBoxMenuItem accelerator bug to Bug screenshot

Changed 3 years ago by maxence@…

  • status changed from new to closed
  • resolution set to remind

::: REMIND :::

Changed 3 years ago by nicolas@…

  • status changed from closed to reopened
  • resolution remind deleted

Changed 3 years ago by maxence@…

  • status changed from reopened to closed
  • resolution set to remind

Changed 2 years ago by ppagee@…

  • cc ppagee@… added
  • status changed from closed to reopened
  • resolution remind deleted

It is more complex - it is not even possible to change those shortcuts. If I redefine shortcut to something like:

<action class="com.mucommander.ui.action.SortByExtensionAction?" keystroke="alt meta F3"/>

The shortcut is still displayed as "meta F3" and both shortcuts work (instead of just "alt meta F3"). Similar shortcuts for other actions work (and replace defaults).

Changed 15 months ago by Nicolas

  • priority changed from high to low
  • description modified (diff)

Changed 15 months ago by maxence

  • status changed from reopened to closed
  • resolution set to fixed

No longer reproducible with the recently released "Java for Mac OS X 10.5 Update 4":
shortcut modifiers are displayed correctly (ctrl F3 is no longer displayed as meta F3) and seem to work as they should (alt meta F3 can no longer be triggered by meta F3).

Note: See TracTickets for help on using tickets.