Android Question SD CustomKeyboard Can I have different length on shift

tsteward

Well-Known Member
Licensed User
Longtime User
How can I have a row of buttons on the keyboard where
Not shifted = 1, 2, 3, 4
Shifted = 12,23,34,4
 

tsteward

Well-Known Member
Licensed User
Longtime User
Looking into this further AddRowStringtoKey would be perfect if I could enter different values for upper/lower case ie shift or no shift.

Is this possible?
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Hi,

I'm not sure I understand what you want to achieve
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
I want to load the buttons with two different values.
Button 1 would have one character on lower case and two characters on your case.

So pressing key with 1 in lower case would pass 1 to the edit text
But upper case will display and pass two characters
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
I want to load the buttons with two different values.
Button 1 would have one character on lower case and two characters on your case.

So pressing key with 1 in lower case would pass 1 to the edit text
But upper case will display and pass two characters
I think it can already be done. I'll give you an example in a few hours
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
I don't have it working but like the attached images if that helps to explain.
 

Attachments

  • Screenshot 2023-11-04 182341.png
    Screenshot 2023-11-04 182341.png
    51.8 KB · Views: 44
  • Screenshot 2.png
    Screenshot 2.png
    50.8 KB · Views: 51
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Here's the example.
 

Attachments

  • Sample - 8.zip
    79.4 KB · Views: 36
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
Thats amazing so simple thank you!
When you press a key with a double digit it then sets the cursor into the wrong place. I guess just set the cursor in the text changed routine which works in my case but not normally desired.
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
BTW where did the -10 come from? Is it documented and I missed it?
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
I get an error when setting focus to another edittext and suspect it might be Customkeyboard causing it.
Are you able to confirm & suggest a solution or dispel this?
 

Attachments

  • TS_Test.zip
    13.2 KB · Views: 35
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Update to rel. 1.20
 
Upvote 0
Top