Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
added tab to next field support to deploy contract description field (#9
Browse files Browse the repository at this point in the history
)

previously the tab button would insert a tab into the description field. this change ensures that the tab button will focus the next field instead
  • Loading branch information
birmingh authored and lllwvlvwlll committed Aug 28, 2017
1 parent 28a158b commit d5f9f56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions neo-gui/UI/DeployContractDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions neo-gui/UI/DeployContractDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,13 @@ private void button2_Click(object sender, EventArgs e)
MainForm parent = (MainForm)this.Owner;
parent.scListAdd("Deployed ScriptHash", textBox1.Text, textBox8.Text.HexToBytes().ToScriptHash().ToString(), true);
}

private void textBox5_KeyDown(object sender, KeyEventArgs e) {
if (e.KeyValue == 9) {
// tab in description should just jump to the next control
e.SuppressKeyPress = true;
SelectNextControl((Control)sender, true, true, true, true);
}
}
}
}

0 comments on commit d5f9f56

Please sign in to comment.