Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ac17da6 authored by Brock Tice's avatar Brock Tice
Browse files

Added help 'Toasts' to the message and folder message list views. Pressing 'h'...

Added help 'Toasts' to the message and folder message list views. Pressing 'h' brings up a list of shortcut keys.


parent 7df272d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<resources>
	<string name="build_number">278</string>
	<string name="build_number">279</string>
</resources>
+8 −1
Original line number Diff line number Diff line
@@ -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>
+4 −0
Original line number Diff line number Diff line
@@ -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();
+4 −1
Original line number Diff line number Diff line
@@ -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);
        }