mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[ruby/reline] Add binding C-x C-x to em_exchange_mark on Windows
24a2489b62
This commit is contained in:
parent
882c0d5015
commit
8135f489be
2 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,7 @@ class Reline::ANSI
|
||||||
{
|
{
|
||||||
# default bindings
|
# default bindings
|
||||||
[27, 32] => :em_set_mark, # M-<space>
|
[27, 32] => :em_set_mark, # M-<space>
|
||||||
[24, 24] => :em_exchange_mark, # C-x C-x TODO also add Windows
|
[24, 24] => :em_exchange_mark, # C-x C-x
|
||||||
}.each_pair do |key, func|
|
}.each_pair do |key, func|
|
||||||
config.add_default_key_binding_by_keymap(:emacs, key, func)
|
config.add_default_key_binding_by_keymap(:emacs, key, func)
|
||||||
end
|
end
|
||||||
|
|
|
@ -38,6 +38,7 @@ class Reline::Windows
|
||||||
|
|
||||||
{
|
{
|
||||||
[27, 32] => :em_set_mark, # M-<space>
|
[27, 32] => :em_set_mark, # M-<space>
|
||||||
|
[24, 24] => :em_exchange_mark, # C-x C-x
|
||||||
}.each_pair do |key, func|
|
}.each_pair do |key, func|
|
||||||
config.add_default_key_binding_by_keymap(:emacs, key, func)
|
config.add_default_key_binding_by_keymap(:emacs, key, func)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue