From e7bc4084dac1aa5f373715dc8ce06459252b0820 Mon Sep 17 00:00:00 2001 From: extrawurst Date: Mon, 19 Feb 2024 11:34:18 +0100 Subject: [PATCH] update docs to new bitflags serialization --- KEY_CONFIG.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/KEY_CONFIG.md b/KEY_CONFIG.md index 0f836a2d..111b862f 100644 --- a/KEY_CONFIG.md +++ b/KEY_CONFIG.md @@ -7,14 +7,15 @@ However popular demand lead to fully customizability of the key bindings. Create a `key_bindings.ron` file like this: ``` ( - move_left: Some(( code: Char('h'), modifiers: ( bits: 0,),)), - move_right: Some(( code: Char('l'), modifiers: ( bits: 0,),)), - move_up: Some(( code: Char('k'), modifiers: ( bits: 0,),)), - move_down: Some(( code: Char('j'), modifiers: ( bits: 0,),)), + move_left: Some(( code: Char('h'), modifiers: "")), + move_right: Some(( code: Char('l'), modifiers: "")), + move_up: Some(( code: Char('k'), modifiers: "")), + move_down: Some(( code: Char('j'), modifiers: "")), - stash_open: Some(( code: Char('l'), modifiers: ( bits: 0,),)), + stash_open: Some(( code: Char('l'), modifiers: "")), + open_help: Some(( code: F(1), modifiers: "")), - open_help: Some(( code: F(1), modifiers: ( bits: 0,),)), + status_reset_item: Some(( code: Char('U'), modifiers: "SHIFT")), ) ```