Skip to content

Commit

Permalink
update platform-specific default key bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
d99kris committed Mar 24, 2024
1 parent 7fadebe commit f0e91a3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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.46"
#define NCHAT_VERSION "4.47"
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" "March 2024" "nchat v4.46" "User Commands"
.TH NCHAT "1" "March 2024" "nchat v4.47" "User Commands"
.SH NAME
nchat \- ncurses chat
.SH SYNOPSIS
Expand Down
12 changes: 6 additions & 6 deletions src/uikeyconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ void UiKeyConfig::Init(bool p_MapKeys)
{ "begin_line", "KEY_CTRLA" },
{ "end_line", "KEY_CTRLE" },
#if defined(__APPLE__)
{ "backward_word", "\\033\\142" }, // opt-left
{ "forward_word", "\\033\\146" }, // opt-right
{ "kill_word", "\\033\\010" }, // opt-delete
{ "backward_word", "\\33\\142" }, // opt-left
{ "forward_word", "\\33\\146" }, // opt-right
{ "kill_word", "\\33\\50" }, // opt-delete
#else // defined(__linux__)
{ "backward_word", "\\1040" }, // alt-left
{ "forward_word", "\\1057" }, // alt-right
{ "kill_word", "\\1006" }, // alt-delete
{ "backward_word", "\\4001040" }, // alt-left
{ "forward_word", "\\4001057" }, // alt-right
{ "kill_word", "\\4001006" }, // alt-delete
#endif
{ "edit_msg", "KEY_CTRLZ" },
{ "backward_kill_word", "\\033\\177" }, // alt/opt-backspace
Expand Down

0 comments on commit f0e91a3

Please sign in to comment.