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

jquery.min.js:2 Uncaught TypeError: $(...).keyboard(...).addTyping is not a function.. #819

Open
patson12 opened this issue Dec 23, 2022 · 0 comments

Comments

@patson12
Copy link

patson12 commented Dec 23, 2022

i am working on electron js.. i am getting this error ..
jquery.min.js:2 Uncaught TypeError: $(...).keyboard(...).addTyping is not a function..

my code is here..

Regards thaanks

//html code

<text id="text_170807720" onclick="leftUpAction(text_170807720,17)" tag-labal="gt1" x= "208" y= "208" >####.##</text>

//java code

function leftUpAction(id, luEluPropertyquation) {
  $("#" + id).on("mouseup", function () {
   if (luEluPropertyquation[0] == 17) {
            $(document).ready(function () {
          $("#" + id)
            .keyboard({
              usePreview: true, // disabled for contenteditable
              useCombos: false,
              autoAccept: true,
              layout: "custom",
              customLayout: {
                normal: [
                  "` 1 2 3 4 5 6 7 8 9 0 - = {del} {b}",
                  "{tab} q w e r t y u i o p [ ] \\",
                  "a s d f g h j k l ; ' {enter}",
                  "{shift} z x c v b n m , . / {shift}",
                  "{accept} {space} {left} {right} {undo:Undo} {redo:Redo}",
                ],
                shift: [
                  "~ ! @ # $ % ^ & * ( ) _ + {del} {b}",
                  "{tab} Q W E R T Y U I O P { } |",
                  'A S D F G H J K L : " {enter}',
                  "{shift} Z X C V B N M < > ? {shift}",
                  "{accept} {space} {left} {right} {undo:Undo} {redo:Redo}",
                ],
              },
              display: {
                del: "\u2326:Delete",
                redo: "↻",
                undo: "↺",
              },
            })
            .addTyping();
          })}})
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

1 participant