jackpal/Android-Terminal-Emulator — pull request #67 by ytang (2011-12-01 23:10:49+00:00)
Title: Add context menus for sending control/fn keys, for the sake of Kindle Fire.

Hi,

I just bought a Kindle Fire, which doesn't have any physical buttons (apart from the power button). So there was no way to send control/fn keys in the Terminal Emulator, which hurted me a lot. Therefore, I added two context menu items as an alternative approach to send control and fn keys.

Here is an screenshot:

![kindle-fire-send-special-key.png](http://f.cl.ly/items/1h0N1u3a390F1C3j1W0Q/kindle-fire-send-special-key.png)

For example, suppose we want to send "ctrl-x". We first long-tap the screen to bring out the context menu. Then we tap "send control key". Finally, we press the letter "x" on the keyboard.

The "send control key" and "send fn key" here only modify the next key pressed. Let's say if we want to send "ctrl-x ctrl-c", then we need to tap the context menu, press "x", tap the context menu again, and press "c". This behavior is justified since in most cases we only need to modify a single key at a time.

I would be grateful if you could pull my commit. Thanks.