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
Default keyboard setting unclear #7
Comments
Hi @coenvanpoelje, You're right, the default keyboard layout is set to QWERTZ. While it's up for debate if this is good as a default, each key of the grid can be rebound by clicking on it, but I guess this isn't really clear. The options at the bottom are more popular presets that populate the grid above, but they're totally optional — this also is more implied than it is clear. From your opinion or gut feeling, how could we make this more clear? From the top of my head, one thing I could imagine is to transform the ambiguous preset menu into an primary segmented option menu. Here's a quick mock up — what do you think? |
@alexwidua I love your proposed solution related to default, considering QWERTY is the most popular layout overall, I think that should be the default alternatively we can also use experimental feature to detect layout and set default based on it but support is not great https://developer.mozilla.org/en-US/docs/Web/API/Keyboard/getLayoutMap |
Sounds like you guys got this down, @alexwidua your solution looks great. Detecting the actual keyboard layout can be tough, though finding the most likely default determined by I18N language could be possible if you use some form of I18N in the app. |
Thank you for your input guys. The idea with the initial message asking if the settings are correct is also great. I'm also doing some refactoring of other components -- I'll push the changes asap, I'm just super tight on time right now. I'll keep you guys posted, thanks for your help! |
One option could be to use this API. It's not supported on Firefox or Safari yet, so you'd need it to be optional, but something like setting the default on initial load as: if ("keyboard" in navigator) {
let keyboardLayout = await navigator.keyboard.getLayoutMap();
var ageOneKey = keyboardLayout.get('KeyQ');
var ageTwoKey = keyboardLayout.get('KeyW');
// etc.
} Then set the variables for |
Thank you for your If the player plays for the first time, the game will ask the user if the current keyboard layout is correct (great idea, James). |
Playing the Aegis game, I ran into Q-Y shortcut for Outposts. Playing a QWERTY keyboard this seemed odd to me.
Checking the settings menu, in the keyboard layout selection, no option is highlighted.
After selecting qwerty in the settings menu, it works as I am used to.
The only issue is that the current selected keyboard layout should be easier to find out.
The text was updated successfully, but these errors were encountered: