home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Bila Vrana
/
BILA_VRANA.iso
/
028A
/
AUROR.ZIP
/
CUKBD.AML
< prev
next >
Wrap
Text File
|
1996-07-17
|
23KB
|
579 lines
//--------------------------------------------------------------------
// The Aurora Editor v3.0, Copyright (C) 1993-1996 nuText Systems
//
// KBD.AML
// Aurora/CUA 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
key <f10> gotobar // to last menu bar item
key <alt f10> gotomenu // goto last pull-down menu
key <alt f> gotomenu "file" // to file menu (cua)
key <alt a> gotomenu "macro" // to macro menu (cua)
key <alt p> gotomenu "options" // to options menu (cua)
key <alt w> gotomenu "window" // to window menu (cua)
key <alt h> gotomenu "help" // to help menu (cua)
key <f1> gotomenu "help" // to help menu (cua)
// Scroll
key <pgdn> pagedown // scroll down (cua)
key <pgup> pageup // scroll up (cua)
key <ctrl pgup> row (getviewtop) // to page top
key <ctrl pgdn> row (getviewbot) // to page bottom
key <ctrl home> row 1 // to file top (cua)
key <ctrl end> row (getlines) // to file bottom (cua)
key <center> adjustrow // center cursor
key <ctrl f9> adjustrow 1 // scroll to page top
key <ctrl f10> adjustrow (getviewrows) // scroll to page bottom
key <ctrl up> rollrow -1 // scroll up one line
key <ctrl down> rollrow 1 // scroll down one line
key <ctrl -> lastpos // to last cursor position
// print w/prompt for marked text
function print2
if mark? then
case yncbox "Print Marked Block Only?"
when 'Yes' options = 'b'
when 'Cancel', '' return
end
end
print options
end
// File
key <ctrl n> opennew // new edit window
key <f3> askopen // open prompt (cua)
key <ctrl o> askopen // open prompt (cua)
key <alt z> openlast // open last window
key <alt -> filelist // file list
key <ctrl p> print2 // print
key <alt q> close // close window
key <ctrl f4> close // close window (cua-win)
key <alt f4> closeall // close all windows (cua-win)
key <alt x> closeall // close all windows and save
key <shift f1> quickref 'qw' // quick function reference
key <shift f2> quickref 'fw' // function reference
// Window
key <alt 0> winlist // window list (cua)
key <alt down> minimize // minimize window
key <alt up> maximize // maximize window
key <f6> nextwindow // next window (cua)
key <shift f6> prevwindow // prev window (cua)
key <shift f3> tile 'v' // tile vertical
key <shift f4> tile 'h' // tile horizontal
key <shift f5> cascade // cascade
key <ctrl k><q> close // close window
// Search
key <ctrl q><s> askscan // file scan prompt
key <ctrl b> gotomark 't' // find top of block
key <ctrl 6> cyclebook // cycle through bookmarks
// Set
key <ctrl f1> togglemode // toggle video mode
key <alt f2> recompile // recompile the editor
// Macro
key <shift f12> pickmacro // macro picklist
key <ctrl f12> runmacro2 "maclist" // macro menu
key <alt f12> askeval // macro command prompt
key <alt f9> askrun // Dos command prompt
key <f9> shell // exit to Dos
// Other
key <alt f5> opencfg "tran" // edit translation table
// undefined or unnamed keys
key <otherkey> (keycode)
say (geteventname (keycode)) + " not defined"
end
//--------------------------------------------------------------------
// Prompts and Edit windows
//--------------------------------------------------------------------
object prompt
// Controls
function '≡' // close window
close
end
function '*' // simulate <enter>
call <enter> // (2-line box only)
end
// Cursor
key <left> left // move cursor left
key <right> right // move cursor right
key <home> col 1 // to column one
key <end> col getlinelen + 1 // to end of line
// 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 <ctrl pgup> rollcol -(getviewcols - 1) // page left
key <ctrl pgdn> rollcol getviewcols - 1 // page right
// Editing
key <ins> setting 'I' TOGGLE // toggle insert mode
key <del>
if getmarkbuf == getcurrbuf then
deleteblock // delete selected text
else
delchar // delete character
end
end
key <backspace> backsp // delete left character
key <alt f6> delchar MAX_COL // erase to end of line
key <ctrl [> literal // enter literal character
key <alt => asciilist // display ascii chart
// Block
//key <alt a> markchar // mark character
key <alt k> markcolumn // mark column
key <alt 1> markword // mark word
key <alt 2> markeol // mark to end of line
key <alt u> destroymark // unmark
// copy block to prompt
key <alt c>
instext (getmarktext)
col getlinelen + 1
end
// paste from clipboard to prompt (cua)
key <shift ins>
oldmark = usemark _ClipName
instext (getmarktext)
usemark oldmark
col getlinelen + 1
end
key <ctrl v> call <shift ins>
// copy from prompt to clipboard (cua)
key <ctrl ins> copy
key <ctrl c> 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
// non-function keys
key <char> (character) // typeable keys
write character
end
// filename completion
key <ctrl tab> askcomplete // filename completion
key <tab> askcomplete
//--------------------------------------------------------------------
// Edit windows
//--------------------------------------------