florisboard icon indicating copy to clipboard operation
florisboard copied to clipboard

Add support for physical keyboard

Open KarimullinArthur opened this issue 3 years ago • 11 comments

Hello everyone!

When I connect physical keyboard I can not switch layout(nothing just happens). In "samsung keyboard" it possible with Alt-Shift.

I use gestures for switch keybaord in touch mode. (Maybe it usefull information)

Environment information

  • Floris Board v0.3.16
  • Install Source: F-Droid
  • Device: Samsung Galasy A80
  • Android: 11
  • oneUI 3.1

KarimullinArthur avatar Jul 26 '22 18:07 KarimullinArthur

This is less a bug and more the fact that FlorisBoard ignores the physical keyboard, as my primary focus is building and improving the soft keyboard experience. I will convert this issue into a feature proposal for physical keyboard support thus.

patrickgold avatar Jul 26 '22 18:07 patrickgold

As for the physical keyboard, do you know any other physical keyboard shortcuts that should have an effect in a soft keyboard (maybe by taking your Samsung Keyboard as a reference)?

patrickgold avatar Jul 26 '22 18:07 patrickgold

Samsung keyboard have 3 shortcuts:

  • Left Alt + Shift
  • Control + Space
  • Shift + Space

But on PC I use CapsLock for this, and Control + CapsLock for Caps Lock :)

I'm will be glad if FlorisBoard too have this shortcats(CapsLock).

KarimullinArthur avatar Jul 26 '22 19:07 KarimullinArthur

What exactly does CTRL+SPACE and SHIFT+SPACE do in the Samsung keyboard?

patrickgold avatar Jul 26 '22 22:07 patrickgold

Switch layout.

And may off/onn some shortcut: Screenshot_20220727-032516_Settings_1

Ahh stop, maybe it system settings, no samsung keyboard, and samsung keyboard just support they -_-

KarimullinArthur avatar Jul 26 '22 22:07 KarimullinArthur

By the way, Ctrl + A, Ctrl + C, select via Shift + arrows and another shortcuts is work, not work only switch layout.

KarimullinArthur avatar Jul 28 '22 19:07 KarimullinArthur

@patrickgold ?

KarimullinArthur avatar Nov 22 '22 15:11 KarimullinArthur

@patrickgold ,

I believe every keyboard has to implement its own shortcut for switching input layouts. For example, Google's GBoard allows switching by Ctrl + Space, and completely ignores the dedicated setting on Samsung tablets. Samsung's OneUI provides tight integration with its own soft keyboard. Also on Samsung keyboard folios there's a dedicated language switch key and I'm sure Samsung's soft keyboard listens to its scancode and reacts appropriately. While integration with Samsung OneUI definitely would be nice (as it's probably the most popular tablet vendor on Android), I don't think this should be a priority.

IMHO, the first priority for florisboard in the scope of physical keyboard support — is listening to some scan/key code combination (ctrl+space, following GBoard's choice, for example) and cycling through configured input layouts.

koiuo avatar Mar 22 '24 10:03 koiuo