Giter VIP home page Giter VIP logo

Comments (6)

jcubic avatar jcubic commented on May 20, 2024

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

from jquery.terminal.

cbonnissent avatar cbonnissent commented on May 20, 2024

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 "("

from jquery.terminal.

jcubic avatar jcubic commented on May 20, 2024

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.

from jquery.terminal.

cbonnissent avatar cbonnissent commented on May 20, 2024

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"

from jquery.terminal.

jcubic avatar jcubic commented on May 20, 2024

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).

from jquery.terminal.

cbonnissent avatar cbonnissent commented on May 20, 2024

Thank you !

from jquery.terminal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.