Selaa lähdekoodia

Copy (Ctrl+C) now copies the entire line if there's no selection. Todo: same for cut. There's no SCI_CUTALLOWLINE, am probably going to add it.

Martijn Laan 1 vuosi sitten
vanhempi
commit
c1d35552e6
2 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 1 0
      Projects/Src/CompScintEdit.pas
  2. 2 1
      whatsnew.htm

+ 1 - 0
Projects/Src/CompScintEdit.pas

@@ -191,6 +191,7 @@ begin
   Call(SCI_SETADDITIONALSELECTIONTYPING, 1, 0);
   Call(SCI_SETMULTIPASTE, SC_MULTIPASTE_EACH, 0);
 
+  Call(SCI_ASSIGNCMDKEY, Ord('C') or (SCMOD_CTRL shl 16), SCI_COPYALLOWLINE);
   Call(SCI_ASSIGNCMDKEY, Ord('Z') or ((SCMOD_SHIFT or SCMOD_CTRL) shl 16), SCI_REDO);
   Call(SCI_ASSIGNCMDKEY, SCK_UP or (SCMOD_ALT shl 16), SCI_MOVESELECTEDLINESUP);
   Call(SCI_ASSIGNCMDKEY, SCK_DOWN or (SCMOD_ALT shl 16), SCI_MOVESELECTEDLINESDOWN);

+ 2 - 1
whatsnew.htm

@@ -48,8 +48,9 @@ For conditions of distribution and use, see <a href="files/is/license.txt">LICEN
 <ul>
   <li>Added new <i>Enable section folding</i> option which allows you to temporarily hide sections while editing. Enabled by default.</li>
   <li>The editor's gutter now shows change history to keep track of saved and unsaved modifications.</li>
-  <li>The editor's font now defaults to Consolas if available, consistent with most other editors.</li>
+  <li>The editor's font now defaults to Consolas if available, consistent with most other modern editors.</li>
   <li>The editor can now be scrolled horizontally instead of vertically by holding the Shift key while rotating the mouse wheel. Horizontal scroll wheels are now also supported.</li>
+  <li>Copy (Ctrl+C) now copies the entire line if there's no selection, consistent with most other modern editors.</li>
   <li>Added shortcuts to move selected lines up or down (Alt+Up and Alt+Down).</li>
   <li>Added a right-click popup menu to the editor's gutter column for breakpoints.</li>
 </ul>