/// <summary>
 /// Form key down for Quick access
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmReceiptVoucher_KeyDown(object sender, KeyEventArgs e)
 {
     try
     {
         if (cmbCashOrBank.Focused == true)
         {
             if (e.KeyCode == Keys.F && Control.ModifierKeys == Keys.Control)
             {
                 if (cmbCashOrBank.SelectedIndex != -1)
                 {
                     frmLedgerPopupObj = new frmLedgerPopup();
                     frmLedgerPopupObj.MdiParent = formMDI.MDIObj;
                     frmLedgerPopupObj.CallFromReceiptVoucher(this, Convert.ToDecimal(cmbCashOrBank.SelectedValue.ToString()), "CashOrBank");
                 }
                 else
                 {
                     Messages.InformationMessage("Select any cash or bank account");
                     cmbCashOrBank.Text = string.Empty;
                 }
             }
         }
         else
         {
             if (dgvReceiptVoucher.CurrentRow != null)
             {
                 if (dgvReceiptVoucher.CurrentCell.ColumnIndex == dgvReceiptVoucher.Columns["dgvcmbAccountLedger"].Index)
                 {
                     if (e.KeyCode == Keys.F && Control.ModifierKeys == Keys.Control)
                     {
                         btnSave.Focus();
                         dgvReceiptVoucher.Focus();
                         if (dgvReceiptVoucher.CurrentRow.Cells["dgvcmbAccountLedger"].Value != null && dgvReceiptVoucher.CurrentRow.Cells["dgvcmbAccountLedger"].Value.ToString() != string.Empty)
                         {
                             frmLedgerPopupObj = new frmLedgerPopup();
                             frmLedgerPopupObj.MdiParent = formMDI.MDIObj;
                             frmLedgerPopupObj.CallFromReceiptVoucher(this, Convert.ToDecimal(dgvReceiptVoucher.CurrentRow.Cells["dgvcmbAccountLedger"].Value.ToString()), string.Empty);
                         }
                         else
                         {
                             Messages.InformationMessage("Select any ledger");
                         }
                     }
                     if (e.KeyCode == Keys.C && Control.ModifierKeys == Keys.Alt)
                     {
                         frmAccountLedgerObj = new frmAccountLedger();
                         frmAccountLedgerObj.MdiParent = formMDI.MDIObj;
                         frmAccountLedgerObj.CallFromReceiptVoucher(this, string.Empty);
                     }
                 }
                 else if (dgvReceiptVoucher.CurrentCell.ColumnIndex == dgvReceiptVoucher.Columns["dgvcmbCurrency"].Index)
                 {
                     if (e.KeyCode == Keys.F && Control.ModifierKeys == Keys.Control)
                     {
                         if (dgvReceiptVoucher.CurrentRow.Cells["dgvcmbCurrency"].Value != null && dgvReceiptVoucher.CurrentRow.Cells["dgvcmbCurrency"].Value.ToString() != string.Empty)
                         {
                             frmCurrencyObj = new frmCurrencyDetails();
                             frmCurrencyObj.MdiParent = formMDI.MDIObj;
                             frmCurrencyObj.CallFromReceiptVoucher(this, Convert.ToDecimal(dgvReceiptVoucher.CurrentRow.Cells["dgvcmbCurrency"].Value.ToString()));
                         }
                         else
                         {
                             Messages.InformationMessage("Select any currency ");
                         }
                     }
                 }
             }
         }
         if (e.KeyCode == Keys.S && Control.ModifierKeys == Keys.Control)
         {
             btnSave_Click(sender, e);
         }
         if (e.KeyCode == Keys.D && Control.ModifierKeys == Keys.Control)
         {
             btnDelete_Click(sender, e);
         }
         if (e.KeyCode == Keys.Escape)
         {
             if (PublicVariables.isMessageClose)
             {
                 Messages.CloseMessage(this);
             }
             else
             {
                 this.Close();
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("RV58:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }