Skip to content
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

Missing command key #98

Open
jllipatz opened this issue Jan 31, 2023 · 2 comments
Open

Missing command key #98

jllipatz opened this issue Jan 31, 2023 · 2 comments
Labels
Site Enhancements to the site itself

Comments

@jllipatz
Copy link

Raher a question than an issue : is it a way to emulate the command key?
I mean not with any combination of alt, ctrl and shft. They may be used somewhere (emacs use a lot of things like that).

@that-ben
Copy link

that-ben commented Jan 31, 2023

SheepShaver (and Basilisk II) come with a key map file named "keycodes" which could be modified so that the COMMAND key is a simple key on your keyboard.

But I don't know if this supersedes SheepShaver's keycodes file:
https://github.com/mihaip/infinite-mac/blob/main/src/emulator/emulator-key-codes.ts

If it does not, then the "keycodes" line should not be set to false and the keycodes file (not the one above) should be edited: https://github.com/mihaip/infinite-mac/blob/main/src/Data/SheepShaverPrefs.txt

I think the emulator-key-codes.ts file supersedes the default keycodes file. Perhaps Mihai can answer this more adequately.

@jllipatz
Copy link
Author

jllipatz commented Feb 1, 2023

OK, I already opened an issue about a key on my keyboard, the french '< and >' key, not recognized because it generates a java script IntlBackslash and because nothing is done on that key code (not used in US keyboards apparently) in the file you are quoting. But I do have access in my keyboard to something that generates the missing < and > so adding the missing keyboard key would actually provide a key too much and it would essentially be a question of aesthetics.
If I could have this key too much (i.e. IntlBackslash in the keycodes file) sending the Mac virtual key code for "command" it would be fine. After that, I am sure there is a way to swap the virtual keys from MacOS.

Additionnal question : I use a small program that translates the PC keyboard into a Mac keyboard, just by patching the copy done by the Script Manager of the KCHR resource for the French keyboard. I don't directly put the updated KCHR in system file because it is much more simpler to run a program at each restart after a crash of the "Infinite Mac". But couldn't be done in a more systematic way? After all, KCHR for French language has id 1, just behind id 0 for US one :-).

@mihaip mihaip added the Site Enhancements to the site itself label Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Site Enhancements to the site itself
Projects
None yet
Development

No branches or pull requests

3 participants