mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-03 07:15:29 -04:00
config: add ctrl+d as (yet another) default binding url-bindings.cancel
This commit is contained in:
parent
65caa33084
commit
82e2541760
3 changed files with 3 additions and 2 deletions
1
config.c
1
config.c
|
|
@ -2181,6 +2181,7 @@ add_default_url_bindings(struct config *conf)
|
||||||
const struct config_key_modifiers ctrl = {.ctrl = true};
|
const struct config_key_modifiers ctrl = {.ctrl = true};
|
||||||
|
|
||||||
add_binding(BIND_ACTION_URL_CANCEL, ctrl, XKB_KEY_g);
|
add_binding(BIND_ACTION_URL_CANCEL, ctrl, XKB_KEY_g);
|
||||||
|
add_binding(BIND_ACTION_URL_CANCEL, ctrl, XKB_KEY_d);
|
||||||
add_binding(BIND_ACTION_URL_CANCEL, none, XKB_KEY_Escape);
|
add_binding(BIND_ACTION_URL_CANCEL, none, XKB_KEY_Escape);
|
||||||
|
|
||||||
#undef add_binding
|
#undef add_binding
|
||||||
|
|
|
||||||
|
|
@ -586,7 +586,7 @@ mode. The syntax is exactly the same as the regular **key-bindings**.
|
||||||
|
|
||||||
*cancel*
|
*cancel*
|
||||||
Exits URL mode without opening an URL. Default: _Control+g
|
Exits URL mode without opening an URL. Default: _Control+g
|
||||||
Escape_.
|
Control+d Escape_.
|
||||||
|
|
||||||
|
|
||||||
# SECTION: mouse-bindings
|
# SECTION: mouse-bindings
|
||||||
|
|
|
||||||
2
foot.ini
2
foot.ini
|
|
@ -119,7 +119,7 @@
|
||||||
# primary-paste=Shift+Insert
|
# primary-paste=Shift+Insert
|
||||||
|
|
||||||
[url-bindings]
|
[url-bindings]
|
||||||
# cancel=Control+g Escape
|
# cancel=Control+g Control+d Escape
|
||||||
|
|
||||||
[mouse-bindings]
|
[mouse-bindings]
|
||||||
# primary-paste=BTN_MIDDLE
|
# primary-paste=BTN_MIDDLE
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue