Changeset 9be00e8 in tol for tolbase


Ignore:
Timestamp:
Jan 7, 2010, 8:58:28 PM (17 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
45bc13e
Parents:
4a4f280
Message:

The key sequence <Shift-Control-/> will replace, in the current
selection, every ocurrence of '\' for '/'

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1927 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/toltk/tolbase.tcl

    r4a4f280 r9be00e8  
    204204  bind . <Control-Key-k> +::tol::stop
    205205  bind Text <Control-Key-k> ""
     206  bind Text <Shift-Control-slash> {
     207    set start [ %W index sel.first ]
     208    set end [ %W index sel.last ]
     209    set selection [ %W get $start $end ]
     210    if { [ regsub -all {\\} $selection {/} changed ] } {
     211      %W delete $start $end
     212      %W insert $start $changed
     213    }
     214    break
     215  }
    206216  return $path
    207217}
Note: See TracChangeset for help on using the changeset viewer.