Coder Social home page Coder Social logo

petrsimon / cordova.externalkeyboard Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 15.0 165 KB

Cordova plugin enabling to set keyboard shortcuts when external keyboard is attached to iOS 7 device **NOT MAINTAINED**

Objective-C 88.18% JavaScript 11.82%

cordova.externalkeyboard's People

Contributors

petrsimon avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cordova.externalkeyboard's Issues

question on special keys

Hi

I am working on an app for handicapped people and it would be a great use if I could catch the following keys: SPACE, ENTER, KEY UP, KEY DOWN, KEY LEFT, KEY RIGHT
A combination with ctrl etc. would be fine too (I saw that "Single key shortcuts are not supported")

Is it possible to catch those keys?
What would be the shortcuts for them?

I saw that you commented out the Arrows.

Thanks

keyUp

Hi Petr

single key shortcuts works very well! Thank you!
I even can stop the listener by setting the commands to

commands = "";
delimiter = "|";
cordova.plugins.ExternalKeyboard.setKeyCommands(commands, delimiter);
cordova.plugins.ExternalKeyboard.redraw();

So I can use the keybord with every key for a normal Input-Field.
Afterwards I restart the listener by setting the commands again.

Now I have a new idea ;-)

How about a onKeyUp event?
I have some objects on the screen, that you can move around by pressing one of the arrow keys.
as long as the key is pressed, the object moves, but it should stop when you release the key.

Cheers

Propagation of all key events to JS

Hi,

Dealing with external key events in IOS is a big problem. For instance you have a bluetooth keyboard / barcode scanner connected to your IOS mobile device. Its not possible to catch key events without having a focus on a certain input. ( On Android its easy to listen to external key events )

I would be great to get all external key events on JavaScript side to deal with them, Instead of defining some shortcuts.

I m not sure if this is possible (No Xcode Dev ;-) )

Regards

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.