diff options
| author | Neil Hodgson <nyamatongwe@gmail.com> | 2017-08-02 16:10:59 +1000 |
|---|---|---|
| committer | Neil Hodgson <nyamatongwe@gmail.com> | 2017-08-02 16:10:59 +1000 |
| commit | 0d289687085855c4c7320a6baf44644fff0ac194 (patch) | |
| tree | 04f6b0178cfb54b0bed7f75a5932e8b0cc60dc4b | |
| parent | 7c5b04d8573ad18503fccb1048868efda6394c73 (diff) | |
| download | scintilla-mirror-0d289687085855c4c7320a6baf44644fff0ac194.tar.gz | |
Switch default modifier key for rectangular selections from Ctrl to Alt on Linux.
| -rw-r--r-- | doc/ScintillaDoc.html | 6 | ||||
| -rw-r--r-- | doc/ScintillaHistory.html | 6 | ||||
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 4 | ||||
| -rw-r--r-- | qt/ScintillaEditBase/ScintillaQt.cpp | 4 |
4 files changed, 9 insertions, 11 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index c669d3c40..0b0660344 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -1651,9 +1651,9 @@ struct Sci_TextToFind { <p> <b id="SCI_SETRECTANGULARSELECTIONMODIFIER">SCI_SETRECTANGULARSELECTIONMODIFIER(int modifier)</b><br /> <b id="SCI_GETRECTANGULARSELECTIONMODIFIER">SCI_GETRECTANGULARSELECTIONMODIFIER → int</b><br /> - On GTK+, the key used to indicate that a rectangular selection should be created when combined with a mouse drag can be set. - The three possible values are <code>SCMOD_CTRL</code>=2 (default), <code>SCMOD_ALT</code>=4 or <code>SCMOD_SUPER</code>=8. - Since <code>SCMOD_ALT</code> is often already used by a window manager, the window manager may need configuring to allow this choice. + On GTK+ and Qt, the key used to indicate that a rectangular selection should be created when combined with a mouse drag can be set. + The three possible values are <code>SCMOD_CTRL</code>=2, <code>SCMOD_ALT</code>=4 (default) or <code>SCMOD_SUPER</code>=8. + Since <code>SCMOD_ALT</code> may already be used by a window manager, the window manager may need configuring to allow this choice. <code>SCMOD_SUPER</code> is often a system dependent modifier key such as the Left Windows key on a Windows keyboard or the Command key on a Mac.</p> diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 2bcfaeebe..d34dc4d4a 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -584,6 +584,12 @@ <a href="http://sourceforge.net/p/scintilla/bugs/1876">Bug #1876</a>. </li> <li> + On Linux, both for GTK+ and Qt, the default modifier key for rectangular selection is now Alt. + This is the same as Windows and macOS. + This was changed from Ctrl as window managers are less likely to intercept Alt+Drag for + moving windows than in the past. + </li> + <li> On Cocoa, fix doCommandBySelector but avoid double effect of 'delete' key. <a href="http://sourceforge.net/p/scintilla/bugs/1958">Bug #1958</a>. diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 0cbf83652..1e3d68320 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -177,11 +177,7 @@ ScintillaGTK::ScintillaGTK(_ScintillaObject *sci_) : sci = sci_; wMain = GTK_WIDGET(sci); -#if PLAT_GTK_WIN32 rectangularSelectionModifier = SCMOD_ALT; -#else - rectangularSelectionModifier = SCMOD_CTRL; -#endif #if PLAT_GTK_WIN32 // There does not seem to be a real standard for indicating that the clipboard diff --git a/qt/ScintillaEditBase/ScintillaQt.cpp b/qt/ScintillaEditBase/ScintillaQt.cpp index 73319bda8..6a119ebd9 100644 --- a/qt/ScintillaEditBase/ScintillaQt.cpp +++ b/qt/ScintillaEditBase/ScintillaQt.cpp @@ -130,11 +130,7 @@ static ScintillaRectangularMime *singletonMime = 0; void ScintillaQt::Init() { -#if defined(Q_OS_WIN) || defined(Q_OS_MAC) rectangularSelectionModifier = SCMOD_ALT; -#else - rectangularSelectionModifier = SCMOD_CTRL; -#endif #if defined(Q_OS_MAC) && QT_VERSION < QT_VERSION_CHECK(5, 0, 0) if (!singletonMime) { |
