Changeset 09d414b in tol for tolbase/lib/toltk/tolbase.tcl


Ignore:
Timestamp:
Feb 14, 2012, 10:56:46 AM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
3d8e270
Parents:
2f74496
Message:

fixes #1168, ctrl-i control-u se habilitan en la la ventana eval, también se corrige un error en el término ident, debe ser indent.

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

File:
1 edited

Legend:

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

    r2f74496 r09d414b  
    5757}
    5858
     59source [file join $toltk_script_path "editor.tcl"]
    5960source [file join $toltk_script_path "markuphelper.tcl"]
    6061source [file join $toltk_script_path "tolpkg.tcl"]
    … …  
    293294  set widgets(eval) $sw1.eval
    294295
     296  # aseguramos que se lean las opciones de Editor que vamos a compartir
    295297  #Creamos text con resaltado TOL
    296298  set w_eval [::BayesText::CreateHLText $widgets(eval) tol \
    … …  
    318320  bind $w_eval <F7> "::BayesText::TolSyntaxCheck $w_eval ; break"
    319321  bind $w_eval <F10> "::TolConsole::OpenEval ; break"
     322
     323  bind $w_eval <Control-Key-i> {
     324    ::BayesText::Indent %W $::Editor::options(charsIndent)
     325    break
     326  }
     327
     328  bind $w_eval <Control-Key-u> {
     329    ::BayesText::UnIndent %W $::Editor::options(charsIndent)
     330    break
     331  }
    320332 
    321333  ## 1) Create a horizontal toolbar frame...
Note: See TracChangeset for help on using the changeset viewer.