Added keyboard control for message zooming

This commit is contained in:
Jesse Vincent 2008-11-03 07:17:42 +00:00
parent c1ad8cffaa
commit 4e75e1b81b
1 changed files with 8 additions and 0 deletions

View File

@ -111,6 +111,14 @@ public class MessageView extends Activity
case KeyEvent.KEYCODE_R: { onReply(); return true; }
case KeyEvent.KEYCODE_J: { onPrevious(); return true; }
case KeyEvent.KEYCODE_K: { onNext(); return true; }
case KeyEvent.KEYCODE_Z: { if (event.isShiftPressed()) {
mMessageContentView.zoomIn();
} else {
mMessageContentView.zoomOut();
}
return true; }
}
return super.onKeyDown(keyCode, event);
}