Darthagnon / SymWinBinaries

Allows one to type special characters such as å or λ on Windows without the alt-key bullshit
Other
8 stars 1 forks source link

Missing keys that cannot be mapped #1

Open Darthagnon opened 3 years ago

Darthagnon commented 3 years ago

Someone sent me an email, alerting me that the original program was missing mapping options for the 6 and 7 keys. Guess I'm the de facto maintainer now (original author hasn't been on GitHub since 2018), though I don't know C# lol

Note that I use a UK British keyboard with a numpad and large Enter/Return key.

A follow-up email mentioned some other keys it would be nice to map. This issue is for tracking all currently unmapped keys, and mapping them.

Key name Name in the code Fixed?
6 ^ Key.D6 Yes
7 & Key.D7 Yes
] } Key.OemCloseBrackets (no problems)
[ { Key.OemOpenBrackets Fixed; caused crashes - because I didn't realise I was duplicating an entry from line 114 - the original programmer didn't organise the key lists!!! (Keylists organised in v0.3)
@ ' Oem3 Found; @ key on UK, tilde key on US; US defaults used
Numpad + "Add" key Requested by user. I'll check other numpad keys while I'm at it. Added in v0.3
Numpad numbers NumPad0 to NumPad9 Requested by user Added in v0.3
Arrow keys See section Banned Keys Requested by user Tested, and they work, but commented out; Bad practice to use control keys for typing chars
Function keys See section Banned Keys Requested by user Tested, and they work, but commented out; Bad practice to use system control keys for typing chars
NumLock See section Banned Keys Tested, and it works, but commented out; Bad practice to use system control keys for typing chars
Space Space Added in v0.3
greywatcher commented 3 years ago

Also the Space bar should be able to have symbols. Though this adds another complication as it would not be possible to see the different kind of spaces in the current UI. Some symbols that would be usefull to be able to select from the Space bar: • No break spade (”Hard space”) • Narrow space • Narrow no break space (used as the thousand marker instead of , in many languages)

greywatcher commented 3 years ago

Here are the different key names: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.keys?view=net-5.0

greywatcher commented 3 years ago

Notised the new build. To bad the missing keys are still missing. Or am I doing something wrong when I simply replaced my old files with the new ones?

Darthagnon commented 3 years ago

Notised the new build. To bad the missing keys are still missing. Or am I doing something wrong when I simply replaced my old files with the new ones?

It's not the new version yet; couple more hours. Just a re-release to correct the version numbers.

EDIT: @greywatcher I've released binaries for v0.3. Backup your custom mappings before updating, if you've done loads that you care about.

I tested the function keys, arrow keys, and NumLock. They all work for typing chars with, but it feels kinda wrong, as they're system control keys. The arrows, especially, can be used to control this software. Let me know if you're desperate for a build with those keys included, as I commented them out for the final build. I've fixed 6, 7 and added all the NumPad keys - wouldn't that be enough for all the accents you could ever need?

EDIT2: Uploaded an extra build with all the "banned keys", i.e. arrows, Function keys, NumLock. No Numpad Enter, or regular Enter, though.

greywatcher commented 3 years ago

There are still a few keys missing. These are the ones I have found:

• The Tab-key would be very useful to map arrows, especially for keyboards without numpad, as well as for the tabulator input for usage in applications where the Tab-key is used to shift to a different cell/input window/function. • The ABNT C1-key ( / ? ) VK_ABNT_C1 on Brazilian Portuguese ABNT keyboards • The OEM Auto-key VK_OEM_AUTO on Japanese 106 key layout

Darthagnon commented 3 years ago

I'll add those to the list. I need to learn C# properly - ideal fix would be to add them all, and have a toggle switch to allow "system keys" (F1-F13, Tab, etc.) mapping.

Program also doesn't quit instantly. I'm not sure why.

Darthagnon commented 3 years ago

I also need to add the following:

Annette Edwards de Lima, [23.07.21 13:38]

Darthagnon commented 2 years ago

Need to add (square root symbol) for the math tutoring for my niece.

Note to self: This is the thread you're looking for.

greywatcher commented 2 years ago

All keys in the left column from the following list that is not already in the program should be added: http://www.kbdedit.com/manual/low_level_vk_list.html

Those keys are useful for several keyboard layouts, especially custom ones. I use a custom I have created with KbdEdit that uses some of those more unusual VR-keys instead of the usual Numpad keys. They still produce numbers though, and with modifiers also other characters. That allows me to never have to worry about turning of NumLock as that simply does not exists. And I can even use Shift with those keys as a normal modifier and not get the navigation keys. I have retained the CapsLock key only because of SymWin, but made it so that key in in practice does not not anything at all even if something is wrong with SymWin and it is still activated.

Darthagnon commented 2 years ago
“ (fancy double quote left)
” (fancy double quote right)
  (fancy single quote left, doesn't want to paste)
’ (fancy single quote right)