Jump to content
ryoko227

(SOLVED) VM VNC Keyboard - default setting

7 posts in this topic Last Reply

Recommended Posts

Settings>>VM Manager

 

Would like to suggest a default setting drop down for the VNC Keyboard of VMs. Right now when you create a VM with VNC selected it auto defaults to "English-United States (en-us)". As my keyboard is "Japanese (ja)", this repeatedly changing of this setting gets annouying to say the least. Obviously not a critical issue, but would be helpful for those of us who make new VMs regularly and are not useing English keyboards.

 

If this is already implimented somewhere or someone knows how to do this, please let me know! Thanks

Share this post


Link to post

You can change the custom template to have a default setting for japanese keyboard.

 

Run this command:

sed -ri "s/('keymap' => ')en-us/\1ja/" /usr/local/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php

 

Share this post


Link to post

Thanks for the tip.... 

 

Can I +1 for LT actually rolling out a fix..  It just seems silly to default to en_US regardless of what the user has. If there isnt a setting (not in front of machine now) that stores default there should be and that should be used for VMs

Share this post


Link to post
On 2017-5-15 at 8:06 AM, bonienl said:

You can change the custom template to have a default setting for japanese keyboard.

 

Run this command:


sed -ri "s/('keymap' => ')en-us/\1ja/" /usr/local/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php

 

Would I just replace ja with en-gb for a British keyboard?  The ) and /\ makes me wanna check!

Share this post


Link to post
9 minutes ago, methanoid said:

Would I just replace ja with en-gb for a British keyboard?  The ) and /\ makes me wanna check!

 

yes, that will work

Share this post


Link to post
On 2017/5/15 at 4:06 PM, bonienl said:

You can change the custom template to have a default setting for japanese keyboard.

 

Run this command:


sed -ri "s/('keymap' => ')en-us/\1ja/" /usr/local/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php

 

 

Sorry for taking so long to get back to your post on this, but thank you bonienl! Worked like a charm, +1 for all you do here for everyone!!!

Share this post


Link to post

Bumping this as it's the first result I found while searching. Would it be possible to get an option for this in the UI? 

Maybe something about setting a default location under the Date/Time settings?

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.