Sophrinix / TryRuby

Try Ruby is a interactive shell that quickly and whimsically teaches the Ruby programming language. Originally _why's idea, it has been recreated from the ground up by Rubyists who have a passion for Ruby and for teaching their fellow (wo)man how to program.
tryruby.org
346 stars 79 forks source link

can't type "[" or "]" into the console (in Chrome) #98

Open arkenidar opened 13 years ago

arkenidar commented 13 years ago

UPDATE: this issue arises only in my Chrome browser as in other browsers I can normally type brackets In the Italian keyboard it is impossible to type "[" or "]" without using an "Alt Gr" keyboard combination. It seems that "Alt Gr" keyboard combinations are not currently supported by the try-ruby console.

MaL73 commented 13 years ago

Hi,

I have the same problem with a french keyboard. The way to get around is to use the ascii code of the character you need. To get [ you hold down the ALT key and while you do that you type on your numerical keypad 91 and then you release the ALT key. to get ] you type ALT-93 to get | you type in ALT-124

GuillermoPena commented 13 years ago

I have tried with ALT-xx and does't work... like with IExplorer (I suppose that issue persists in Firefox too) :(

stdufour commented 13 years ago

In facts, it's true with every non QWERTY keyboard and with every browser. Copy paste doesn't work either.

MaL73's workaroud works but I think most of non QWERTY kb users just give up. Changing you kb to Qwerty in windows might also work but would also be difficult to use.

http://usefulshortcuts.com/alt-codes/punctuation-alt-codes.php

MaL73 commented 13 years ago

Hi Manantial,

I assume you are trying to use the figures on top of your keyboard, but to do so you need to shift (not sure it works). Try to use the numerical keypad, maybe it solves your problem.

Regards,

MaL

GuillermoPena commented 13 years ago

Ok! With numerical keypad it works!

Thanks!