Skip to content

Instantly share code, notes, and snippets.

@Mm2PL
Last active August 14, 2020 08:47
Show Gist options
  • Save Mm2PL/7ae7852444edc351ed44bdd2874aced4 to your computer and use it in GitHub Desktop.
Save Mm2PL/7ae7852444edc351ed44bdd2874aced4 to your computer and use it in GitHub Desktop.
---
src/widgets/splits/Split.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletion(-)
diff --git a/src/widgets/splits/Split.cpp b/src/widgets/splits/Split.cpp
index d35ca701..6e286fae 100644
--- a/src/widgets/splits/Split.cpp
+++ b/src/widgets/splits/Split.cpp
@@ -124,6 +124,7 @@ Split::Split(QWidget *parent)
// CreateShortcut(this, "ALT+SHIFT+LEFT", &Split::doDecFlexX);
// CreateShortcut(this, "ALT+SHIFT+UP", &Split::doIncFlexY);
// CreateShortcut(this, "ALT+SHIFT+DOWN", &Split::doDecFlexY);
+ createShortcut(this, "Ctrl+L", &Split::clear);
this->input_->ui_.textEdit->installEventFilter(parent);
--
2.20.1
#!/bin/bash
if command -v curl
then
curl -L https://gist.githubusercontent.com/Mm2PL/7ae7852444edc351ed44bdd2874aced4/raw/clear-shortcut.patch > custom_patches/clear-shortcut.patch
curl -L https://gist.githubusercontent.com/Mm2PL/7ae7852444edc351ed44bdd2874aced4/raw/clear-shortcut.patch_updater.sh > custom_patches/clear-shortcut.patch_updater.sh
elif command -v wget
then
wget -O - https://gist.githubusercontent.com/Mm2PL/7ae7852444edc351ed44bdd2874aced4/raw/clear-shortcut.patch > custom_patches/clear-shortcut.patch
wget -O - https://gist.githubusercontent.com/Mm2PL/7ae7852444edc351ed44bdd2874aced4/raw/clear-shortcut.patch_updater.sh > custom_patches/clear-shortcut.patch_updater.sh
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment