Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Detecting left/right arrows on external keyboard?

Is there a way to detect a 'left' or 'right' arrow press on an external keyboard? The keyboard(key) function does not seem to react to them.


  • Posts: 645

    @Simeon hopefully arrow keys might get some attention sometime soon!

  • edited June 19 Posts: 2,364
    @piinthesky - have you tried printing out the key codes when the direction arrows are used.

    Edit: course you have - ignore the above. This could be a nightmare with the different keyboards used. That's why they have dedicated drivers on PCs.
  • Posts: 198

    @piinthesky As you well know, they don’t currently work in Codea but as long as iOS can connect to the keyboard it should have no problem handling them as all the keyboard events come through the same Apple API. We just need the support to be added by the Codea devs.

    As far as the app is concerned, all keyboards are the same so drivers shouldn’t be an issue.

  • Posts: 2,364
    All, Just an update on this, I just purchased a Logitech K780 keyboard and connected via WiFi. The keyboard arrow keys are fully functional on my pad.
  • Posts: 645
    Bri_G so the keyboard(key) function reacts when you use the arrows?
  • Posts: 198
    I haven't managed to get the keyboard(key) function to trigger with a keyboard using the smart connector but it works just fine inside the editor itself.
  • edited June 24 Posts: 2,364
    @piinthesky - yes it does. The keyboard has two modes - Bluetooth and WiFi via a dongle. So my Mac uses the dongle and the pad must be using Bluetooth. The keyboard has a numeric keypad, with arrows on it (which doesn't work in moving the cursor) but it also has a separate set of four dedicated arrow keys - and they work. Only just got it so still learning about it. It has three dedicated cases which you can assign to connection toac, pc, pads or phones.

    @Steppers - so far only used it within the editor my main reason for getting it, as it gives me a full editing screen. Have you an example of code to test response within a project?
  • Posts: 645
    yes, i want to use the arrows inside my codea programs via the keyboard(key) function
  • Posts: 2,364

    @Steppers @piinthesky - update, can not get a response from keyboard(key) but at least I have a full screen for editing.

  • Posts: 198

    @Bri_G Yeah, makes a really good difference being able to see more code. I can’t stand using the onscreen keyboard anymore.

Sign In or Register to comment.