View Single Post
Old 01-05-2023, 07:33 AM   #28
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,952
Karma: 17500001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
You could try using the Unicode U+200E (LTR mark, ‎ ) and U+200F (RTL mark, ‏ ).
Since in Android Ctrl, Shift are modifiers, I don't think they can be easily used just by themselves without modifying some code.
You can make Ctrl-Shift-LeftArrow be a directional mark. (DPAD_LEFT)
Code:
key DPAD_LEFT {
   ctrl+shift:      '\u200f'
}

key DPAD_RIGHT {
   ctrl+shift:      '\u200e'
}
I just tried that. The keycodes come through correctly.
When I hit the keys it does wacky LTR/RTL things.
(Full disclosure: I don't really understand how LTR/RTL layout works.)

You'll need Magisk or root or a loadable keyboard map APK.
What language are you typing in?
Renate is online now   Reply With Quote