1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 09:52:16 -05:00

Fix for gcode issue #1 - - Can't use the hardware "back" button to back out of the message view

This commit is contained in:
Jesse Vincent 2008-10-28 15:17:24 +00:00
parent 4eeed9d1f3
commit 72443b0ee7

View File

@ -101,14 +101,14 @@ public class MessageView extends Activity
public boolean onKeyDown(int keyCode, KeyEvent event) { public boolean onKeyDown(int keyCode, KeyEvent event) {
switch (keyCode) { switch (keyCode) {
case KeyEvent.KEYCODE_DEL: { onDelete(); break;} case KeyEvent.KEYCODE_DEL: { onDelete(); return true;}
case KeyEvent.KEYCODE_F: { onForward(); break;} case KeyEvent.KEYCODE_F: { onForward(); return true;}
case KeyEvent.KEYCODE_A: { onReplyAll(); break; } case KeyEvent.KEYCODE_A: { onReplyAll(); return true; }
case KeyEvent.KEYCODE_R: { onReply(); break; } case KeyEvent.KEYCODE_R: { onReply(); return true; }
case KeyEvent.KEYCODE_J: { onPrevious(); break; } case KeyEvent.KEYCODE_J: { onPrevious(); return true; }
case KeyEvent.KEYCODE_K: { onNext(); break; } case KeyEvent.KEYCODE_K: { onNext(); return true; }
} }
return true; return super.onKeyDown(keyCode, event);
} }