Skip to content

Fixed bug with editing by F2 & Enter in favorite tree#263

Open
Air77777 wants to merge 2 commits intoTerminals-Origin:masterfrom
Air77777:master
Open

Fixed bug with editing by F2 & Enter in favorite tree#263
Air77777 wants to merge 2 commits intoTerminals-Origin:masterfrom
Air77777:master

Conversation

@Air77777
Copy link

Add new hokeys for favorites - F9, Del, Insert

Add new hokeys for favorites - F9, Del, Insert
string messsage = string.Format("Do you really want to delete selected {0}?", target);
return MessageBox.Show(messsage, "Terminals - Delete",
MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes;
MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why YesNoCancel, if Cancel makes no sence here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is sensefull fix. Because of user can push fast key escape on keyboard to cancel. It is much more usefull way than push dialog button with mouse

{
this.renameCommand.ApplyRename(favorite, newName);
this.isRenaming = false;
//this.isRenaming = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this line is removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants