albb0920 / LunaTerm

A branch of rTerm which is an terminal application optimized for telnet based BBS on Android. 這是一個為了中文 Telnet BBS 打造的 Android 虛擬終端機應用程式。
GNU General Public License v3.0
56 stars 15 forks source link

Fix physical keyboard locks not working #34

Closed albb0920 closed 13 years ago

albb0920 commented 13 years ago

Alt lock, shift lock ..etc not working on current version. After a little investigation, I found out that because we're using dummy mode of Input Connection, which makes IME act like keyboard, and if it's physical keyboard events, IME won't touch them, we're handling it ourself. This could be fixed with two ways:

A. Use MetaKeyKeyListener to keep track of metakeys B. Implemet editable to our TerminalView and implement a full editor

Although later seems better, it's too much work, I'll use the first approach to fix this issue, and leave the second one to the future. A sample example of how it could be done is attached: https://gist.github.com/847223

albb0920 commented 13 years ago

9f3ed9b0a7d9fb5cd5df0b3eea488ec457f734f1 done