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

keyboard special Key to call "chosen" with jquey data #464

Open
Sua26 opened this issue May 30, 2016 · 3 comments
Open

keyboard special Key to call "chosen" with jquey data #464

Sua26 opened this issue May 30, 2016 · 3 comments

Comments

@Sua26
Copy link

Sua26 commented May 30, 2016

Hi,

I had a textarea that calls the mottie keyboard, I want a made a especial key in keyboard who calls a chosen (or select2) with data taken of jquery. for example... in that text area you can put your destiny o select from a list that appears when you click on the "special key" and you input text manually and from list in textarea..

I don know how made the call and how the selected see in the text area.

///// key action
$.extend( $.keyboard.keyaction, {
test : function(base){base.insertText('X');},
destiny : function(base){

////
// I dont know...
///
}
});���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

I need little help... thanks for all,

@Mottie
Copy link
Owner

Mottie commented May 30, 2016

Hi @Sua26!

Select2 and chosen do not work in textarea elements.

If you meant an input, then I do have a demo using this keyboard with select2, but it isn't working as expected... this is because I created that demo to work with select2 version 3, and the demo is now loading version 4. I'll see what I can do in the free time I have today.

@Sua26
Copy link
Author

Sua26 commented May 31, 2016

Thats the solution to my problem if you make it.

Thanks! great job!

@Mottie
Copy link
Owner

Mottie commented Jun 11, 2016

Getting the keyboard to work with Select2 v4+ is a bit more troublesome than I expected... that, and I lost motivation 😝

I'll see if I can get it working soon (maybe this weekend).

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

No branches or pull requests

2 participants