From 1f9076c679cc474e4ba2354e9dd1cd4c52edbb5f Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Sat, 31 Mar 2018 13:50:02 -0700 Subject: [PATCH] Implement Shift-tab to dedent - Closes #304 --- components/Carbon.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/Carbon.js b/components/Carbon.js index 60d2e1e..00c9d82 100644 --- a/components/Carbon.js +++ b/components/Carbon.js @@ -80,7 +80,10 @@ class Carbon extends PureComponent { theme: config.theme, scrollBarStyle: null, viewportMargin: Infinity, - lineWrapping: true + lineWrapping: true, + extraKeys: { + 'Shift-Tab': 'indentLess' + } } const backgroundImage = (this.props.config.backgroundImage && this.props.config.backgroundImageSelection) ||