|
From: Jan H. <jh...@sc...> - 2007-07-09 15:22:44
|
Hmm, odd that you mention that it worked. As far as I can see the implementation didn't change much over time. The problem is that there wasn't any conversion of lowercase letters to uppercase. Apparently the setMnemonic(int) method expects VK_XXX statics, and only the uppercase ascii letters are mapped on these VK_XXX statics. So I'll add a toUpperCase() in the LabelInfo class to fix this. Kind Regards, Jan On Mon, 2007-07-09 at 14:52 +0100, Benoit Xhenseval wrote: > Hi Jan, > > Unfortunately, I cannot be more precise than the change in behaviour occurred in Q1 of this year... I'm not sure where to look to see the difference... > > An example would be to change the messages.properties in the resources artifact from > cancelCommand.label=&Cancel > to > cancelCommand.label=C&ancel > > If you run the simple example and look at the Contact View | New Contact. > The display of Cancel button will change, the "_" will be under 'a' instead of 'C' but the ALT+a will not work. > (it used to). > > Let me know if you can reproduce the issue. > > Many thanks > > Benoit. > > -----Original Message----- > From: spr...@li... [mailto:spr...@li...] On Behalf Of Jan Hoskens > Sent: 09 July 2007 11:57 > To: spr...@li... > Subject: Re: [Springframework-rcp-dev] Question/Issue on Shortcuts > > I don't recall any changes related to this. Which was your previous > revision? Have you checked the commit messages in between both revs? > > Is there a small sample that I can look at? > > Kind Regards, > Jan > > On Fri, 2007-07-06 at 11:36 +0100, Benoit Xhenseval wrote: > > Dear *, > > > > > > > > I’ve upgraded to Rev:1771 this morning and have a problem that seems > > to have cropped up a few months ago without any change in my code > > (honest!). > > > > > > > > Shortcuts seems to ONLY work with Upper Case/First letter. > > > > > > > > e.g. in my message.properties I have: > > > > closeCommand.label=C&lose > > > > saveQueryCommand.label=&Save Query > > > > > > > > Both are used in my mdi window as button and they do display > > correctly, i.e. there is an underscore under ‘l’ in Close and under > > ‘S’ in Save Query. > > > > > > > > The problem is: > > > > If I do “ALT + S” it does call Save but “ALT + l” does NOT do > > anything!!! > > > > > > > > It is a new-ish issue… > > > > > > > > Furthermore, if there is a MENU item that start with a letter which is > > on a shortcut in the same window (say I have Revert but a menu View > > too), pressing ‘ALT + V’ opens the menu! Not the command on the > > current MDI… puzzling! > > > > > > > > Could anyone tell me if something has changed and if not where should > > I look for in order to investigate? > > > > Do I need to register anything to get this to work? (the Save seems to > > be ok…) > > > > > > > > Many thanks! > > > > > > > > Benoit > > > > > > > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.5.476 / Virus Database: 269.10.1/888 - Release Date: > > 06/07/2007 06:36 > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ Springframework-rcp-dev mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev > > > **** DISCLAIMER **** > http://www.schaubroeck.be/maildisclaimer.htm > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Springframework-rcp-dev mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.476 / Virus Database: 269.10.2/891 - Release Date: 08/07/2007 18:32 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.476 / Virus Database: 269.10.2/891 - Release Date: 08/07/2007 18:32 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Springframework-rcp-dev mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev **** DISCLAIMER **** http://www.schaubroeck.be/maildisclaimer.htm |