Skip to content
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

the char ( is not handle #2

Closed
cbonnissent opened this issue May 6, 2011 · 6 comments
Closed

the char ( is not handle #2

cbonnissent opened this issue May 6, 2011 · 6 comments

Comments

@cbonnissent
Copy link

Hello,

On my config azerty keyboard on ubuntu firefox, i can't type the char (. I have looked in the code and find that this char is suppressed on the line 1315 of the jquery.terminal.js

@jcubic
Copy link
Owner

jcubic commented May 6, 2011

What is the keyCode, charCode and which of this character in azerty keyboard?

@cbonnissent
Copy link
Author

When I test this touch on my azerty keyboard : i have :

keydown

keyCode=57 (9) which=57 (9) charCode=0
keyIdentifier=undefined keyLocation=undefined
shiftKey=false ctrlKey=false altKey=false metaKey=false

keypress

keyCode=0 which=40 (() charCode=40 (()
shiftKey=false ctrlKey=false altKey=false metaKey=false

keyup

keyCode=57 (9) which=57 (9) charCode=0
keyIdentifier=undefined keyLocation=undefined
shiftKey=false ctrlKey=false altKey=false metaKey=false

from this site : http://unixpapa.com/js/testkey.html

and the caracter is "("

@jcubic
Copy link
Owner

jcubic commented May 6, 2011

Strange because I have the same codes and I also use ubuntu. And if statement in line 1315 check if "which" is 40 but without shift.

What is the name of you keyboard? I can change my config and test this.

@cbonnissent
Copy link
Author

In my /etc/default/console-setup

# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.
XKBMODEL="pc105"
XKBLAYOUT="fr"
XKBVARIANT="oss"
XKBOPTIONS="lv3:ralt_switch"

@jcubic
Copy link
Owner

jcubic commented May 6, 2011

In French keyboard parentheses keys are without shift key. I don't remember why I put this condition with code 40 but I remove it (it was something about Opera, another key with the same code).

@jcubic jcubic closed this as completed May 6, 2011
@cbonnissent
Copy link
Author

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants