Skip to content

Commit

Permalink
revert b5d80cd - add back message cancel help and re-order dialog hel…
Browse files Browse the repository at this point in the history
…p keys
  • Loading branch information
d99kris committed Dec 23, 2023
1 parent 3bbb4ad commit f4e3f37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/common/src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

#pragma once

#define NCHAT_VERSION "4.15"
#define NCHAT_VERSION "4.16"
2 changes: 1 addition & 1 deletion src/nchat.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
.TH NCHAT "1" "December 2023" "nchat v4.15" "User Commands"
.TH NCHAT "1" "December 2023" "nchat v4.16" "User Commands"
.SH NAME
nchat \- ncurses chat
.SH SYNOPSIS
Expand Down
5 changes: 3 additions & 2 deletions src/uihelpview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ void UiHelpView::Draw()
static std::vector<std::wstring> listDialogHelpItems = []()
{
std::vector<std::wstring> helpItems;
AppendHelpItem(UiKeyConfig::GetKey("cancel"), "Cancel", helpItems);
AppendHelpItem(UiKeyConfig::GetKey("return"), "Select", helpItems);
AppendHelpItem(UiKeyConfig::GetKey("cancel"), "Cancel", helpItems);
AppendHelpItem('a', "AddFiltr", helpItems);
AppendHelpItem(UiKeyConfig::GetKey("backspace"), "DelFiltr", helpItems);
return helpItems;
Expand All @@ -45,14 +45,15 @@ void UiHelpView::Draw()
{
std::vector<std::wstring> helpItems;
AppendHelpItem(UiKeyConfig::GetKey("return"), "OK", helpItems);
AppendHelpItem(UiKeyConfig::GetKey("cancel"), "Cancel", helpItems);
return helpItems;
}();

static std::vector<std::wstring> editMessageHelpItems = []()
{
std::vector<std::wstring> helpItems;
AppendHelpItem(UiKeyConfig::GetKey("cancel"), "Cancel", helpItems);
AppendHelpItem(UiKeyConfig::GetKey("send_msg"), "Save", helpItems);
AppendHelpItem(UiKeyConfig::GetKey("cancel"), "Cancel", helpItems);
return helpItems;
}();

Expand Down

0 comments on commit f4e3f37

Please sign in to comment.