home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Bila Vrana
/
BILA_VRANA.iso
/
028A
/
AUROR.ZIP
/
WSKBD.AML
< prev
next >
Wrap
Text File
|
1996-07-17
|
24KB
|
588 lines
//--------------------------------------------------------------------
// The Aurora Editor v3.0, Copyright (C) 1993-1996 nuText Systems
//
// KBD.AML
// WordStar/Borland IDE Keyboard definitions (included by Main.aml)
//
// If you have made any changes, save this file and select Recompile
// the Editor from the Set menu. Exit and re-enter the editor for
// your changes to take effect.
//--------------------------------------------------------------------
//--------------------------------------------------------------------
// Edit and File Manager windows
//--------------------------------------------------------------------
object edit_fmgr
// Controls
function '≡' // close window
close
end
// Menu activation
key <esc> gotobar // to last menu bar item (ws)
key <f10> call <esc> // to last menu bar item (ws)
key <alt f10> gotomenu // goto last pull-down menu
key <f1> gotomenu "help" // goto help pull-down menu (ws)
key <ctrl j> call <f1> // goto help pull-down menu (ws)
// alt-key access to pulldown menus
key <alt f> gotomenu "file" // file menu
key <alt w> gotomenu "window" // window menu
key <alt b> gotomenu "block" // block menu
key <alt s> gotomenu "search" // search menu
key <alt o> gotomenu "fold" // fold menu
key <alt e> gotomenu "edit" // edit menu
key <alt c> gotomenu "clip" // clipboard menu
key <alt p> gotomenu "print" // print menu
key <alt t> gotomenu "set" // set menu
key <alt a> gotomenu "macro" // macro menu
key <alt h> gotomenu "help" // help menu
// Scroll
key <pgdn> pagedown // scroll down (ws)
key <ctrl c> send <pgdn> // scroll down (ws)
key <pgup> pageup // scroll up (ws)
key <ctrl r> send <pgup> // scroll up (ws)
key <ctrl home> row (getviewtop) // to page top (ws)
key <ctrl q><e> send <ctrl home> // to page top (ws)
key <ctrl end> row (getviewbot) // to page bottom (ws)
key <ctrl q><x> send <ctrl end> // to page bottom (ws)
key <ctrl pgup> row 1 // to file top (ws)
key <ctrl q><r> send <ctrl pgup> // to file top (ws)
key <ctrl pgdn> row (getlines) // to file bottom (ws)
key <ctrl q><c> send <ctrl pgdn> // to file bottom (ws)
key <ctrl o><v> adjustrow // center cursor (ws)
key <ctrl f9> adjustrow 1 // scroll to page top
key <ctrl f10> adjustrow (getviewrows) // scroll to page bottom
// scroll up one line (ws)
key <ctrl up>
rollrow -1
if getrow < getviewbot then
down
end
end
key <ctrl w> call <ctrl up>
// scroll down one line (ws)
key <ctrl down>
rollrow 1
if getrow > getviewtop then
up
end
end
key <ctrl z> call <ctrl down>
key <ctrl q><p> lastpos // to last cursor position (ws)
// File
key <ctrl k><e> askopen // open prompt (ws)
key <f3> call <ctrl k><e> // open prompt (ws)
key <alt z> openlast // open last window
key <alt 0> filelist // file list (ws)
key <ctrl k><q> close // close window (ws)
key <alt x> closeall // close all windows (ws)
key <shift f1> quickref 'qw' // quick function reference
key <shift f2> quickref 'fw' // function reference
// Window
key <f5> maximize // maximize window (ws)
key <f6> nextwindow // next window (ws)
key <shift f6> prevwindow // prev window
key <shift f3> tile 'v' // tile vertical
key <shift f4> tile 'h' // tile horizontal
key <shift f5> cascade // cascade
key <alt f3> deletewin // close window (ws)
// Search
key <ctrl o><s> askscan // file scan prompt
key <ctrl q><b> gotomark 't' // find top of block (ws)
key <ctrl q><k> gotomark 'b' // find bot of block (ws)
key <ctrl 6> cyclebook // cycle through bookmarks
// Print
key <ctrl k><p> print 'b' // print block (ws)
// Set
key <ctrl f1> togglemode // toggle video mode
key <alt f2> recompile // recompile the editor
key <alt f9> recompile // recompile the editor (ws)
// Macro
key <alt f8> askruncap // Dos capture prompt
key <ctrl k><f> shell // exit to Dos (ws)
key <shift f12> pickmacro // macro picklist
key <ctrl f12> runmacro2 "maclist" // macro menu
// undefined or unnamed keys
key <otherkey> (keycode)
say (geteventname (keycode)) + " not defined"
end
//--------------------------------------------------------------------
// Prompts and Edit windows
//--------------------------------------------------------------------
object prompt
// Controls
function '≡' close // close window
end
function '*' enter // simulate <enter>
end // (2-line box only)
// Cursor
key <left> left // move cursor left (ws)
key <ctrl s> left // move cursor left (ws)
key <right> right // move cursor right (ws)
key <ctrl d> right // move cursor right (ws)
key <home> col 1 // to column one (ws)
key <ctrl q><s> col 1 // to column one (ws)
key <end> col getlinelen + 1 // to end of line (ws)
key <ctrl q><d> col getlinelen + 1 // to end of line (ws)
// Cursor + CUA-marking
key <shift left> left
smark
key <shift right> right
smark
key <shift home> col 1
smark
key <shift end> col getlinelen + 1
smark
// Scroll
key <f7> rollcol -(getviewcols - 1) // page left
key <f8> rollcol getviewcols - 1 // page right
// Editing
key <ins> setting 'I' TOGGLE // toggle insert mode (ws)
key <ctrl v> call <ins> // toggle insert mode (ws)
key <del> delchar // delete character (ws)
key <ctrl g> call <del> // delete character (ws)
key <backspace> backsp // delete left character (ws)
key <ctrl h> call <backspace> // delete left character (ws)
key <ctrl q><y> delchar MAX_COL // erase to end of line (ws)
key <ctrl q><del> delchar getcol - 1 1 // erase to beginning of line (ws)
key <ctrl p> literal // enter literal character (ws)
key <alt => asciilist // display ascii chart
// Block
// mark block
function markblock
if _mtype == 'k' then
markcolumn
else
markstream
end
end
// toggle between stream and column marking
function marktoggle
set _mtype if? _mtype == 'k' '' 'k'
say "Column marking turned " + (if? _mtype == 'k' "On" "Off")
end
// mark block (ws)
key <ctrl k><b> markblock
key <ctrl k><k> call <ctrl k><b>
// toggle column mode (ws)
key <ctrl k><n> marktoggle
key <ctrl k>