tuliob / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

Toggle comments action bug #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There is a problem with the toggle comments action : the ctrl+slash
keyboard shortcut doesn't works with a french keyboard (=AZERTY). 
(but it works well if I switch my keyboard as US keyboard (QWERTY))

For information, on a french keyboard, the slash is accessible by using
"shift", so I think that there is a probleme of key recognition (on a
french keyboard, "ctrl+/" = "ctrl+shift+:")

Otherwise, thanks for your work !

Original issue reported on code.google.com by genest.o...@gmail.com on 12 Jan 2009 at 5:03

GoogleCodeExporter commented 9 years ago
Try mapping "control shift COLON".  I did not get Java error when using this, 
but on
my Windows, control and shift are used to change language, so they do not reach 
the
application.
Otherwise, you can map any other key, like F6 or something.
This can be done without changing the source.  Just use the setProperty method 
of the
DefaultSyntaxKit.

Please let me know the outcome.

Original comment by ayman.al...@gmail.com on 13 Jan 2009 at 7:14

GoogleCodeExporter commented 9 years ago
Ok, this works well.

But there is still a problem if I want to distribute my application worldwide : 
do you think that it is the role of my application to check the Locale and to 
change
the key shortcut in consequence or that I should be able to set the shortcut as
"ctrl+/" and that the shortcut manager should automatically detect "ctrl+/" 
whatever
the key combination used to make a "/" ?

Thanks for your very fast answer !

Original comment by bartou...@gmail.com on 13 Jan 2009 at 9:56

GoogleCodeExporter commented 9 years ago
In an ideal world, it would be the component, but that's getting to be beyond 
the
current scope, and I'm out of ideas for that.

Please do let me know if you know how to elegantly sort it out within this 
projects
scope.

Original comment by ayman.al...@gmail.com on 13 Jan 2009 at 12:54