Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
c92982d6
Commit
c92982d6
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
binding: fix some duplicated carets and too restrictive menus
parent
7a274d62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/global.c
+6
-6
src/global.c
with
6 additions
and
6 deletions
+6
-6
src/global.c
View file @
c92982d6
...
...
@@ -413,16 +413,16 @@ void assign_keyinfo(sc *s, const char *keystring)
if
(
strcasecmp
(
keystring
,
"^Space"
)
==
0
)
s
->
keycode
=
0
;
else
if
(
strcasecmp
(
keystring
,
"^Left"
)
==
0
||
strcasecmp
(
keystring
,
"^
^
\xE2\x86\x90
"
)
==
0
)
strcasecmp
(
keystring
,
"^
\xE2\x86\x90
"
)
==
0
)
s
->
keycode
=
CONTROL_LEFT
;
else
if
(
strcasecmp
(
keystring
,
"^Right"
)
==
0
||
strcasecmp
(
keystring
,
"^
^
\xE2\x86\x92
"
)
==
0
)
strcasecmp
(
keystring
,
"^
\xE2\x86\x92
"
)
==
0
)
s
->
keycode
=
CONTROL_RIGHT
;
else
if
(
strcasecmp
(
keystring
,
"^Up"
)
==
0
||
strcasecmp
(
keystring
,
"^
^
\xE2\x86\x91
"
)
==
0
)
strcasecmp
(
keystring
,
"^
\xE2\x86\x91
"
)
==
0
)
s
->
keycode
=
CONTROL_UP
;
else
if
(
strcasecmp
(
keystring
,
"^Down"
)
==
0
||
strcasecmp
(
keystring
,
"^
^
\xE2\x86\x93
"
)
==
0
)
strcasecmp
(
keystring
,
"^
\xE2\x86\x93
"
)
==
0
)
s
->
keycode
=
CONTROL_DOWN
;
else
s
->
keycode
=
keystring
[
1
]
-
64
;
...
...
@@ -1127,8 +1127,8 @@ void shortcut_init(void)
add_to_sclist
(
MMOST
,
"^F"
,
do_right
,
0
);
add_to_sclist
(
MMOST
,
"Right"
,
do_right
,
0
);
if
(
using_utf8
())
{
add_to_sclist
(
MM
AIN
,
"^
\xE2\x86\x90
"
,
do_prev_word_void
,
0
);
add_to_sclist
(
MM
AIN
,
"^
\xE2\x86\x92
"
,
do_next_word_void
,
0
);
add_to_sclist
(
MM
OST
,
"^
\xE2\x86\x90
"
,
do_prev_word_void
,
0
);
add_to_sclist
(
MM
OST
,
"^
\xE2\x86\x92
"
,
do_next_word_void
,
0
);
}
else
{
add_to_sclist
(
MMOST
,
"^Left"
,
do_prev_word_void
,
0
);
add_to_sclist
(
MMOST
,
"^Right"
,
do_next_word_void
,
0
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help