home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Bila Vrana
/
BILA_VRANA.iso
/
028A
/
AUROR.ZIP
/
BRKBD.AML
< prev
next >
Wrap
Text File
|
1996-07-17
|
24KB
|
638 lines
//--------------------------------------------------------------------
// The Aurora Editor v3.0, Copyright (C) 1993-1996 nuText Systems
//
// KBD.AML
// Brief 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
//--------------------------------------------------------------------
forward object prf
object edit_fmgr
// Controls
function '≡' // close window
close
end
// Menu activation
key <esc> gotobar // to last menu bar item (br)
key <f10> gotobar // to last menu bar item (br)
key <alt h> gotomenu "help" // goto help pull-down menu (br)
// Scroll
key <pgdn> pagedown // scroll down (br)
key <pgup> pageup // scroll up (br)
key <ctrl home> row (getviewtop) // to page top (br)
key <ctrl end> row (getviewbot) // to page bottom (br)
key <ctrl pgup> row 1 // to file top (br)
key <ctrl pgdn> row (getlines) // to file bottom (br)
key <ctrl c> adjustrow // center cursor (br)
key <ctrl t> adjustrow 1 // scroll to page top (br)
key <ctrl b> adjustrow (getviewrows) // scroll to page bottom (br)
// scroll up one line (br)
key <ctrl e>
rollrow -1
if getrow < getviewbot then
down
end
end
// scroll down one line (br)
key <ctrl d>
rollrow 1
if getrow > getviewtop then
up
end
end
// File
key <ctrl n> opennew // new edit window
key <alt e> askopen // open prompt (br)
key <alt b> filelist // file list (br)
key <ctrl -> close // close window (br)
key <alt x> closeall // close all windows (br)
key <shift f1> quickref 'qw' // quick function reference
key <shift f2> quickref 'fw' // function reference
// Window
key <f1> winlist // window list
key <ctrl z> maximize // maximize window (br)
key <alt f2> maximize // maximize window (br)
key <ctrl a> nextwindow // next window
key <f12> prevwindow // prev window
key <shift f3> tile 'v' // tile vertical
key <shift f4> tile 'h' // tile horizontal
key <shift f5> cascade // cascade
key <ctrl o><q> close // close window
// Search
key <ctrl s> askscan // file scan prompt
key <ctrl 6> cyclebook // cycle through bookmarks
// go to bookmark
key <alt j> askbook "Go to bookmark [0-9]"
// Print
key <ctrl p> print // print
key <alt p> print 'b' // print block (br)
// Set
key <ctrl f1> togglemode // toggle video mode
// Macro
key <alt f7> askopenkey // open key macro (br)
key <alt f8> asksavekey // save key macro (br)
key <ctrl v> askeval // macro command prompt
key <alt f9> askrun // Dos command prompt
key <alt z> shell // exit to Dos (br)
key <shift f12> pickmacro // macro picklist
key <ctrl f12> runmacro2 "maclist" // macro menu
// display version
key <alt v> say "Version is: " + getversion
// undefined or unnamed keys
key <otherkey> (keycode)
say (geteventname (keycode)) + " not defined "
end
//--------------------------------------------------------------------
// Prompts and Edit windows
//--------------------------------------------------------------------
object prompt
// Controls
function '≡' close // close window
function '*' enter // simulate <enter>
// (2-line box only)
// Cursor
key <left> left // move cursor left (br)
key <right> right // move cursor right (br)
key <home> col 1 // to column one (br)
key <end> col getlinelen + 1 // to end of line (br)
// 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 <alt left> rollcol -(getviewcols - 1) // page left
key <alt right> rollcol getviewcols - 1 // page right
// Editing
key <alt i> setting 'I' TOGGLE // toggle insert mode (br)
// delete character/block (br)
key <del>
if getmarkbuf == getcurrbuf then
deleteblock2
else
if wintype? "edit" then
send "delchar2"
else
delchar
end
end
end
key <backspace> backsp // delete left character (br)
key <alt k> delchar MAX_COL // erase to end of line (br)
key <ctrl k> delchar getcol - 1 1 // erase to beginning of line (br)
key <alt q> literal // enter literal character (br)
key <alt => asciilist // display ascii chart
// Block
key <alt a> destroymark // mark character (br)
markchar
key <alt c> destroymark // mark column (br)
markcolumn
key <alt m> destroymark // mark stream (br)
markstream
// paste from clipboard to prompt (br)
key <ins>
oldmark = usemark _ClipName
instext (getmarktext)
usemark oldmark
col getlinelen + 1
// copy from prompt to clipboard (br)
key <grey+> copy
// Prompt history
key <up> prevhist // retrieve prev prompt
key <down> nexthist // retrieve next prompt
key <pgup> askhistory // history popup menu
key <pgdn> askhistory // history popup menu
// Exit
key <esc> close // quit prompt
key <ctrl -> close
// non-function keys
key <char> (character) // typeable keys
write character
end
// filename completion
key <ctrl tab> askcomplete // filename completion
key <tab> askcomplete // filename completion
//--------------------------------------------------------------------
// Edit windows
//--------------------------------------------------------------------
object edit
// Controls
function '≡'
close // close window
end
// Menu
key <esc> gotobar // to last menu bar item (br)
// Cursor
key <up> up // move cursor up (br)
key <down> down // move cursor down (br)
// Cursor + CUA-marking
key <shift up> up
smark
key <shift down> down
smark
// brief <home> key emulation (br)
key <home>
col 1 // goto column 1