[SERVER-4611] Handle the AltGr key correctly in the shell (Windows) Created: 04/Jan/12 Updated: 11/Jul/16 Resolved: 04/Jan/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | 2.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tad Marshall | Assignee: | Tad Marshall |
| Resolution: | Done | Votes: | 0 |
| Labels: | Windows | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows, version 2.1.0-pre- |
||
| Issue Links: |
|
||||
| Operating System: | Windows | ||||
| Participants: | |||||
| Description |
|
In Windows, the right Alt key is used as an AltGr key with international keyboard layouts, including English – United States International. In some keyboard layouts, certain normal ASCII characters need the AltGr key. For example, the Turkish Q keyboard layout uses AltGr+7 for ' {' (left wavy brace) and AltGr+0 for '}' (right wavy brace). The shell is basically unusable with those keyboard layouts if the AltGr key is treated as a regular Alt key. My current code for handling Meta keys in the shell doesn't work with these international keyboard layouts. This issue was brought to my attention by a question on StackOverflow raised by a tester of our nightly builds. |
| Comments |
| Comment by auto [ 04/Jan/12 ] |
|
Author: {u'login': u'', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}Message: If a key's shift state indicates left-Ctrl and right-Alt are down, this |
| Comment by Tad Marshall [ 04/Jan/12 ] |
|
Here is the relevant StackOverflow discussion: http://stackoverflow.com/questions/8695400 I am trying to use curly braces in mongodb native console client on Windows 7 but i am not able to write curly braces if i am even copy paste curly braces to console it just remove curly braces. Which settings of console can cause this ? Here is client console session MongoDB shell version: 2.1.0-pr I am using 2.1.0 pre alpha version " is AltGr+0 ... is this right? So I should be able to get this effect on a US keyboard by setting Windows to use the Turkish Q layout, is that right? If I'm on the right track, I think I just need to respect the AltGr key and not treat it as Right Alt. Let me know, thanks! – Tad Marshall |