home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Bila Vrana
/
BILA_VRANA.iso
/
028A
/
AUROR.ZIP
/
WPKBD.AML
< prev
next >
Wrap
Text File
|
1996-07-17
|
22KB
|
589 lines
//--------------------------------------------------------------------
// The Aurora Editor v3.0, Copyright (C) 1993-1996 nuText Systems
//
// KBD.AML
// WordPerfect 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 <alt => gotobar // to last menu bar item (wp)
key <f3> gotomenu "help" // goto help menu (wp)
key <shift f7> gotomenu "print" // goto print menu (wp)
key <alt t> gotobar2 // to last toolbar/drive item
// Scroll
key <pgdn> pagedown // scroll down (wp)
key <pgup> pageup // scroll up (wp)
key <grey-> row (getviewtop) // to page top (wp)
key <grey+> row (getviewbot) // to page bottom (wp)
key <ctrl pgup> row 1 // to file top
key <ctrl pgdn> row (getlines) // to file bottom
key <center> adjustrow // center cursor
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
// File
key <ctrl n> opennew // new edit window
key <shift f10> askopen // open prompt (wp)
key <alt z> openlast // open last window
key <alt -> filelist // file list
key <alt q> close // close window
key <f7> closeall // close all windows (wp)
// Window
key <f5> winlist // window list (wp)
key <ctrl z> maximize // maximize window
key <shift f3> nextwindow // next window (wp)
//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 k><q> close // close window
// Search
key <ctrl s> askscan // file scan prompt
key <ctrl b> gotomark 't' // find top of block
key <ctrl 6> cyclebook // cycle through bookmarks
// Print
key <ctrl p> print // print
key <alt p> print 'b' // print block
// Macro
key <ctrl v> askeval // macro command prompt
key <ctrl f1> shell // exit to Dos (wp)
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
key <right> right // move cursor right
key <home> col 1 // to column one
key <end> col getlinelen + 1 // to end of line (wp)
// 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
// Editing
key <ins> setting 'I' TOGGLE // toggle insert mode (wp)
key <del> delchar // delete character (wp)
key <backspace> backsp // delete left character (wp)
key <ctrl [> literal // enter literal character
key <ctrl a> asciilist // display ascii chart
// Block
key <alt f4> markchar // mark character (wp)
key <alt b> 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
// paste from clipboard to prompt
key <grey*>
oldmark = usemark _ClipName
instext (getmarktext)
usemark oldmark
col getlinelen + 1
// copy from prompt to clipboard
//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 <alt q> 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 // filename completion
//--------------------------------------------------------------------
// Edit windows
//--------------------------------------------------------------------
object edit
// Controls
function '≡'
close // close window
end
// Menu
key <esc> gotobar // to last menu bar item
// Cursor
// cursorleft with wrap (wp)
key <left>
if getcol == 1 then // wrap if at column 1
if up then // ..and not at first line
col getlinelen + 1
end
else
left
end
smark // cua marking
end
key <shift left> call <left>
// cursorright with wrap (wp)
key <right>
if getcol > getlinelen then // wrap if at end-of-line
if down then // ..and not at last line
col 1
end
else
right
end
smark // cua marking
end
key <shift right> call <right>
key <up> up // move cursor up (wp)
key <down> down // move cursor down (wp)
key <shift up> up
smark
key <shift down> down
smark
// home key (wp)
forward wpdelword
key <home>
case getkey
when <up> row (getviewtop) // page top (wp)
when <down> row (getviewbot) // page bottom (wp)
when <right> col getlinelen + 1 // end of line (wp)
when <left> col 1 // column 1 (wp)