New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add menu mnemonics for editor #51

Closed
processing-bugs opened this Issue Feb 10, 2013 · 14 comments

Comments

Projects
None yet
5 participants
@processing-bugs

Original author: b...@processing.org (June 06, 2010 23:45:19)

This bug automatically added from:
http://dev.processing.org/bugs/show_bug.cgi?id=26

Comment from fry, 2005-05-12 20:15

add mnemonics for menus (i.e. alt-f to open 'file')

Original issue: http://code.google.com/p/processing/issues/detail?id=12

@processing-bugs

This comment has been minimized.

Show comment
Hide comment
@processing-bugs

processing-bugs Feb 10, 2013

From b...@processing.org on June 06, 2010 23:45:22
Comment from Myer Nore, 2009-03-24 18:01

Created an attachment (id=304)
processing.app.Editor.java with the changes implemented

I posted about my patch to this problem at:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_core_pde;action=display;num=1237927985

Everything compiles and runs just fine with the updated Editor.java.

From b...@processing.org on June 06, 2010 23:45:22
Comment from Myer Nore, 2009-03-24 18:01

Created an attachment (id=304)
processing.app.Editor.java with the changes implemented

I posted about my patch to this problem at:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_core_pde;action=display;num=1237927985

Everything compiles and runs just fine with the updated Editor.java.

@processing-bugs

This comment has been minimized.

Show comment
Hide comment
@processing-bugs

processing-bugs Feb 10, 2013

From b...@processing.org on June 06, 2010 23:45:23
Comment from Myer Nore, 2009-03-24 18:05

Created an attachment (id=305)
Screenshot of processing with the accelerators fixed.

From b...@processing.org on June 06, 2010 23:45:23
Comment from Myer Nore, 2009-03-24 18:05

Created an attachment (id=305)
Screenshot of processing with the accelerators fixed.

@processing-bugs

This comment has been minimized.

Show comment
Hide comment
@processing-bugs

processing-bugs Feb 10, 2013

From b...@processing.org on June 06, 2010 23:45:23
Comment from fry, 2009-03-25 07:23

Thanks for looking into this. I should have been cleared in the original
report: we need to use the Windows (and/or Gnome or KDE, or even Mac if
they refer to accelerators at all) human interface guidelines to set the
default accelerator keys where available, then add our own on top of that.
(Or I could be mistaken and this algorithm is already how they're determined.)

From b...@processing.org on June 06, 2010 23:45:23
Comment from fry, 2009-03-25 07:23

Thanks for looking into this. I should have been cleared in the original
report: we need to use the Windows (and/or Gnome or KDE, or even Mac if
they refer to accelerators at all) human interface guidelines to set the
default accelerator keys where available, then add our own on top of that.
(Or I could be mistaken and this algorithm is already how they're determined.)

@processing-bugs

This comment has been minimized.

Show comment
Hide comment
@processing-bugs

processing-bugs Feb 10, 2013

From b...@processing.org on June 06, 2010 23:45:24
Comment from Myer Nore, 2009-03-25 19:40

Of course! I've downloaded the UX / HIG for kde, gnome, os x, and vista.
I'll be back with some comments as soon as I have a better idea what the
accepted standards are.

(In reply to comment #6)

      Additional Comment #6 From

          fry
      2009-03-25 07:23 

      <!-- 
        addReplyLink(6); //-->[reply]




  Thanks for looking into this. I should have been cleared in the

original
report: we need to use the Windows (and/or Gnome or KDE, or even Mac if
they refer to accelerators at all) human interface guidelines to set the
default accelerator keys where available, then add our own on top of that.
(Or I could be mistaken and this algorithm is already how they're
determined.)

From b...@processing.org on June 06, 2010 23:45:24
Comment from Myer Nore, 2009-03-25 19:40

Of course! I've downloaded the UX / HIG for kde, gnome, os x, and vista.
I'll be back with some comments as soon as I have a better idea what the
accepted standards are.

(In reply to comment #6)

      Additional Comment #6 From

          fry
      2009-03-25 07:23 

      <!-- 
        addReplyLink(6); //-->[reply]




  Thanks for looking into this. I should have been cleared in the

original
report: we need to use the Windows (and/or Gnome or KDE, or even Mac if
they refer to accelerators at all) human interface guidelines to set the
default accelerator keys where available, then add our own on top of that.
(Or I could be mistaken and this algorithm is already how they're
determined.)

@processing-bugs

This comment has been minimized.

Show comment
Hide comment
@processing-bugs

processing-bugs Feb 10, 2013

From b...@processing.org on June 06, 2010 23:45:25
Comment from Myer Nore, 2009-03-26 00:45

Created an attachment (id=312)
PDF describing overview of mnemonics in different platforms and proposal

From b...@processing.org on June 06, 2010 23:45:25
Comment from Myer Nore, 2009-03-26 00:45

Created an attachment (id=312)
PDF describing overview of mnemonics in different platforms and proposal

@processing-bugs

This comment has been minimized.

Show comment
Hide comment
@processing-bugs

processing-bugs Feb 10, 2013

From b...@processing.org on June 06, 2010 23:45:27
Comment from Myer Nore, 2009-03-26 00:47

I tried attaching a larger pdf that contained highlighted regions from the
UX guidelines for each of the different platforms, but the server wouldn't
accept it. It's available on request. What is the limit on what you can
post at once? It'd be helpful to know on the upload page.

From b...@processing.org on June 06, 2010 23:45:27
Comment from Myer Nore, 2009-03-26 00:47

I tried attaching a larger pdf that contained highlighted regions from the
UX guidelines for each of the different platforms, but the server wouldn't
accept it. It's available on request. What is the limit on what you can
post at once? It'd be helpful to know on the upload page.

@processing-bugs

This comment has been minimized.

Show comment
Hide comment
@processing-bugs

processing-bugs Feb 10, 2013

From b...@processing.org on June 06, 2010 23:45:27
Comment from fry, 2010-02-17 20:42

the limit should be a few megabytes. can you post it somewhere else? or
make it smaller perhaps? thanks!

From b...@processing.org on June 06, 2010 23:45:27
Comment from fry, 2010-02-17 20:42

the limit should be a few megabytes. can you post it somewhere else? or
make it smaller perhaps? thanks!

@GKFX

This comment has been minimized.

Show comment
Hide comment
@GKFX

GKFX Feb 16, 2014

Contributor

Human Interface Guidelines

Mac

No mnemonics. (https://developer.apple.com/library/mac/documentation/Java/Conceptual/Java14Development/07-NativePlatformIntegration/NativePlatformIntegration.html)

Gnome

(https://developer.gnome.org/hig-book/3.10/hig-book.html#choosing-access-keys)

  • Assign access keys to the most frequently-used controls first. If it's not clear which controls will be the most frequently used, assign access keys from left to right, top to bottom (for Western locales).
  • Use the first letter of the label, or of one of its other words if it has more than one. If another letter provides a better association (e.g. "x" in Extra Large) however, consider using that letter instead.
  • If the first letter is not available, choose an easy to remember consonant from the label, for example, "p" in Replace.
  • If no such consonants are available, choose any available vowel from the label.
    If duplication of access keys in a window is unavoidable, you should still refrain from duplicating the access keys for any of these buttons that appear in the same window: OK, Cancel, Close, Apply or Help.
    Also, it is better not to assign access keys to "thin" letters (such as lowercase i or l), or letters with descenders (such as lowercase g or y) unless it is unavoidable. The underline does not show up very well on those characters in some fonts.
Microsoft

I couldn't find anything except Windows Mobile guidance, but it's sensible stuff anyway: (http://msdn.microsoft.com/en-us/library/bb158536.aspx)

Consider the following guidelines:

  • Choose the mnemonic in the following order of preference:
    1. Use the first letter of the command name unless another letter provides a better mnemonic association.
    2. If the first letter is already assigned to another command, use a letter that is as close as possible to the first letter of the command name.
    3. Use a distinctive consonant in the command name.
    4. Use a vowel in the command name.
  • Avoid duplication of mnemonic assignments or use of a letter that is difficult to see. Otherwise, choose the mnemonic in the following order of preference:
    1. Letter that is next to a letter with a descender.
    2. Letter with descender, such as p, g, q, or y.
    3. Letter that is narrow, such as i or l.
  • Do not assign mnemonics to commands that are not included on menus, such as the Finish, Cancel, or Next command buttons.
KDE

There's a massive list of global accelerators here (http://techbase.kde.org/Projects/Usability/HIG/Keyboard_Accelerators).

Contributor

GKFX commented Feb 16, 2014

Human Interface Guidelines

Mac

No mnemonics. (https://developer.apple.com/library/mac/documentation/Java/Conceptual/Java14Development/07-NativePlatformIntegration/NativePlatformIntegration.html)

Gnome

(https://developer.gnome.org/hig-book/3.10/hig-book.html#choosing-access-keys)

  • Assign access keys to the most frequently-used controls first. If it's not clear which controls will be the most frequently used, assign access keys from left to right, top to bottom (for Western locales).
  • Use the first letter of the label, or of one of its other words if it has more than one. If another letter provides a better association (e.g. "x" in Extra Large) however, consider using that letter instead.
  • If the first letter is not available, choose an easy to remember consonant from the label, for example, "p" in Replace.
  • If no such consonants are available, choose any available vowel from the label.
    If duplication of access keys in a window is unavoidable, you should still refrain from duplicating the access keys for any of these buttons that appear in the same window: OK, Cancel, Close, Apply or Help.
    Also, it is better not to assign access keys to "thin" letters (such as lowercase i or l), or letters with descenders (such as lowercase g or y) unless it is unavoidable. The underline does not show up very well on those characters in some fonts.
Microsoft

I couldn't find anything except Windows Mobile guidance, but it's sensible stuff anyway: (http://msdn.microsoft.com/en-us/library/bb158536.aspx)

Consider the following guidelines:

  • Choose the mnemonic in the following order of preference:
    1. Use the first letter of the command name unless another letter provides a better mnemonic association.
    2. If the first letter is already assigned to another command, use a letter that is as close as possible to the first letter of the command name.
    3. Use a distinctive consonant in the command name.
    4. Use a vowel in the command name.
  • Avoid duplication of mnemonic assignments or use of a letter that is difficult to see. Otherwise, choose the mnemonic in the following order of preference:
    1. Letter that is next to a letter with a descender.
    2. Letter with descender, such as p, g, q, or y.
    3. Letter that is narrow, such as i or l.
  • Do not assign mnemonics to commands that are not included on menus, such as the Finish, Cancel, or Next command buttons.
KDE

There's a massive list of global accelerators here (http://techbase.kde.org/Projects/Usability/HIG/Keyboard_Accelerators).

@GKFX

This comment has been minimized.

Show comment
Hide comment
@GKFX

GKFX Feb 23, 2014

Contributor

I've nearly finished this now - just need to get JPopupMenus working.
Edit: forget JPopupMenus. I'm just going to feed in their constituent parts - it's all the same effect.

Contributor

GKFX commented Feb 23, 2014

I've nearly finished this now - just need to get JPopupMenus working.
Edit: forget JPopupMenus. I'm just going to feed in their constituent parts - it's all the same effect.

GKFX added a commit to GKFX/processing that referenced this issue Feb 25, 2014

Menu mnemonics #51
Added Toolkit.setMenuMnemonics(JMenuItem...) and
Toolkit.setMenuMnemonics(JMenuBar).

GKFX added a commit to GKFX/processing that referenced this issue Mar 1, 2014

Manindra29 added a commit to Manindra29/processing that referenced this issue Jun 12, 2014

@Manindra29

This comment has been minimized.

Show comment
Hide comment
@Manindra29

Manindra29 Jun 12, 2014

Member

Accidentally closed while merging pde x codebase. Reopened.

Member

Manindra29 commented Jun 12, 2014

Accidentally closed while merging pde x codebase. Reopened.

@Manindra29 Manindra29 reopened this Jun 12, 2014

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Nov 18, 2014

Member

Fixed with #2382

Member

benfry commented Nov 18, 2014

Fixed with #2382

@benfry benfry closed this Nov 18, 2014

@javadba

This comment has been minimized.

Show comment
Hide comment
@javadba

javadba May 14, 2017

Is there a version with mnemonics on Mac - or is it possible to hack it to do so? I know of at least one major software that it is possible. I DETEST the lack of mnemonics on mac and came to this page solely for searching for that support.

javadba commented May 14, 2017

Is there a version with mnemonics on Mac - or is it possible to hack it to do so? I know of at least one major software that it is possible. I DETEST the lack of mnemonics on mac and came to this page solely for searching for that support.

@GKFX

This comment has been minimized.

Show comment
Hide comment
@GKFX

GKFX May 14, 2017

Contributor

@javadba You can delete all the if-statements about Mac from Toolkit.java that got introduced in #2382. That should mean the code runs, at least.

Contributor

GKFX commented May 14, 2017

@javadba You can delete all the if-statements about Mac from Toolkit.java that got introduced in #2382. That should mean the code runs, at least.

@javadba

This comment has been minimized.

Show comment
Hide comment
@javadba

javadba May 14, 2017

Ah great - just what I was looking for.

javadba commented May 14, 2017

Ah great - just what I was looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment