GitHub user anshul1886 reopened a pull request:
https://github.com/apache/cloudstack/pull/669
Made the adding new keyboard language support easier
https://issues.apache.org/jira/browse/CLOUDSTACK-8665
This branch has implemented following improvements in console proxy
keyboard language support
1) ajaxviewer.js and ajaxkeys.js are main files involved in key code
translations. These files now can be copied in systemvm/js folder and they will
be copied to CPVM with stop/start performed on it.
2) Started passing parameters to CPVM needed to resolve the ambiguous cases
of keycode translations.
3) Generalise the framework such that one needs to modify only ajaxkeys.js
(file which has keycode mappings) without need of much knowledge in js.
FS for this feature is available at
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Support+for+non-US+keyboards+in+Console+Proxy
After these changes how to add keyboard support for new language or fix
existing broken keys WIP document is available at
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Adding+support+for+non-US+Keyboard+for+Console+Proxy
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/anshul1886/cloudstack-1 nonuskeyboardsupport
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/669.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #669
----
commit 31e12325e715420536ee3215e312474be1b258a5
Author: Anshul Gangwar <[email protected]>
Date: 2015-08-04T04:54:16Z
CLOUDSTACK-8665: Added following improvements:
1. Added support for copying js files from management server to console
proxy VM with stop start
2. Generalise console keyboard support framework
3. Passing additional parameters which will be needed for keyboard mappings
for vm console
4. Moved the console Keyboard Options to new file so that user can add
keyboard options easily
5. Improved memory footprint, now keeping only required locale mappings
6. Added more conditions while setting up translation table
7. Improved browser detection for keyboard mappings
8. Formatted ajaxviewer.js and ajaxkeys.js with spaces instead of tabs
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---