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

How does the mobile terminal determine the @ symbol in Chinese mode #470

Open
luzhe0359 opened this issue Feb 16, 2022 · 0 comments
Open

Comments

@luzhe0359
Copy link

luzhe0359 commented Feb 16, 2022

BUG REPORT TEMPLATE

I'm going to cook a @ function, I use the keyboard.addBinding(), the key value of 299 | 50, how can you judge on the mobile end @ the key values of corresponding Chinese mode (PC shiftKey value is true, such invalid mobile end, ShiftKey is set to null. Pressing any key in Chinese mode will trigger the callback function.

Vue.js version and component version

"vue": "^2.6.11",
"vue-quill-editor": "^3.0.6",

Reproduction Link

Steps to reproduce

  editorOption: {
    placeholder: '说点什么呢。。。',
    modules: {
      keyboard: {
        bindings: {
          // This will overwrite the default binding also named 'tab'
          tab1: {
            key: 229,
            shiftKey: null,
            handler: function (range, context) {
              console.log('`~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~229');
              that.showList(range, context)
            },
          },
          tab2: {
            key: 50,
            shiftKey: null,
            handler: function (range, context) {
              console.log('`~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~50');
              that.showList(range, context)
            },
          }
        }
      }
    }
  },

What is Expected?

Under the keyboard module, there is a way to determine the @ sign in Chinese state

What is actually happening?

Thank you very much!

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