mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-24 08:38:51 -05:00
Added help 'Toasts' to the message and folder message list views. Pressing 'h' brings up a list of shortcut keys.
This commit is contained in:
parent
7df272d161
commit
0ac17da6cd
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="build_number">278</string>
|
||||
<string name="build_number">279</string>
|
||||
</resources>
|
||||
|
@ -350,4 +350,11 @@ Welcome to K-9 Mail setup. K-9 is an open source email client for Android based
|
||||
<string name="account_setup_failed_dlg_invalid_certificate_accept">Accept Key</string>
|
||||
<string name="account_setup_failed_dlg_invalid_certificate_reject">Reject Key</string>
|
||||
|
||||
<string name="message_help_key">Del (or D) - Delete\u000AR -
|
||||
Reply\u000AA - Reply All\u000AF - Forward\u000AJ - Previous
|
||||
Message\u000AF - Next Message\u000AZ - Zoom Out\u000AShift-Z -
|
||||
Zoom In</string>
|
||||
<string name="message_list_help_key">Del (or D) - Delete\u000AR -
|
||||
Reply\u000AA - Reply All\u000AC - Compose\u000AF - Forward\u000AQ
|
||||
- Return to Accounts</string>
|
||||
</resources>
|
||||
|
@ -612,6 +612,10 @@ public class FolderMessageList extends ExpandableListActivity
|
||||
case KeyEvent.KEYCODE_C: { onCompose(); return true;}
|
||||
case KeyEvent.KEYCODE_Q: { onAccounts(); return true; }
|
||||
case KeyEvent.KEYCODE_S: { onEditAccount(); return true; }
|
||||
case KeyEvent.KEYCODE_H: {
|
||||
Toast toast = Toast.makeText(this, R.string.message_list_help_key, Toast.LENGTH_LONG);
|
||||
toast.show();
|
||||
return true; }
|
||||
}//switch
|
||||
|
||||
long packedPosition = mListView.getSelectedPosition();
|
||||
|
@ -145,7 +145,10 @@ public class MessageView extends Activity
|
||||
}
|
||||
return true; }
|
||||
|
||||
|
||||
case KeyEvent.KEYCODE_H: {
|
||||
Toast toast = Toast.makeText(this, R.string.message_help_key, Toast.LENGTH_LONG);
|
||||
toast.show();
|
||||
return true; }
|
||||
}
|
||||
return super.onKeyDown(keyCode, event);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user