Patiencer / pyscripter

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

Unable to set Ctrl + Alt + , as shortcut for EditUnComment #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. customize IDE shortcuts --> select command 
Source Code : actEditUnCommand
2. press Ctrl + Alt + , 
3. Assign
4. Ok

Then it works in the code.
Close Pyscripter by clicking the cross top right. Don't save file

What is the expected output? What do you see instead?
At next start up, it doesn't work. Any more, also not visible in the list 
at customize IDE shortcuts

What version of the product are you using? On what operating system?
1.9.9.2 on Windows XP Professional version 2002 Sp2

Please provide any additional information below.

Original issue reported on code.google.com by n.j.degr...@gmail.com on 4 Sep 2008 at 4:01

GoogleCodeExporter commented 9 years ago
This is a Windows limitation in the function GetKeyNameText which for the comma
character does not return anything.   This function is used in saving the 
shortcuts)
This is maybe due to the fact the this character is not located in a standard
position in the keyboard layout.

The allowed characters (combined with Ctrl, Shift, Alt) in shortcusts are (hex 
Ascii
values):

    $08, $09:
    $0D: Name := MenuKeyCaps[mkcEnter];
    $1B: Name := MenuKeyCaps[mkcEsc];
    $20..$28:
    $2D..$2E:
    $30..$39: Name := Chr(WordRec(ShortCut).Lo - $30 + Ord('0'));
    $41..$5A: Name := Chr(WordRec(ShortCut).Lo - $41 + Ord('A'));
    $60..$69: Name := Chr(WordRec(ShortCut).Lo - $60 + Ord('0'));
    $70..$87: Name := 'F' + IntToStr(WordRec(ShortCut).Lo - $6F);

and a few others, but you see the gaps there.

I am afraid is rather difficult to fix this.

Original comment by pyscripter on 22 May 2009 at 12:46