VirtualBox

Changeset 3555 in kBuild


Ignore:
Timestamp:
Feb 16, 2022 1:20:30 PM (3 years ago)
Author:
bird
Message:

kkeys.e: shift-space in block selection mode workaround.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SlickEdit/kkeys.e

    r3499 r3555  
    4646def  'INS'      = boxer_paste
    4747def  'S-INS'    = insert_toggle
     48def  'S- '      = kkey_space;
    4849def  'C-UP'     = kkeys_scroll_down
    4950def  'C-DOWN'   = kkeys_scroll_up
     
    9394def  'M-v'      = paste
    9495
     96/* Want proper shift-space in C. */
     97defeventtab c_keys
     98def  'S- '      = kkey_space;
     99
    95100
    96101/** Saves the cursor position. */
     
    108113}
    109114
     115/** Fixes shift-space while in block select, default slickedit since a while
     116 *  is to exit selection mode and insert a single space.  A long long time
     117 *  ago, I think slickedit would ask if you wanted the normal 'space'
     118 *  behaviour for this. */
     119_command void kkey_space()
     120{
     121   /** @todo figure out when these functions were added and such. */
     122   if (!select_active() || _select_type('') != 'BLOCK')
     123      keyin(' ');
     124   else
     125      block_insert_text(' ');
     126}
    110127
    111128_command kkeys_switch_lines()
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette