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:
parent
4eeed9d1f3
commit
72443b0ee7
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user