Resulta útil poder acceder a los comandos de menú directamente desde el teclado. El kit de herramientas Thot te permite hacerlo mediante atajos de teclado definidos en un archivo. Este archivo define la lista de asociaciones entre el comando y sus teclas asociadas.
La sintaxis utilizada para definir una asociación es:
Directive = KeySeq ':' IdentCommand ;
KeysSeq = KeySet [ ',' KeySet ] ;
KeySet = [ Modifier ] [ 'Shift' ] Key ;
Key = '<Key>' KeyValue / '<Key>' SpecialKey ;
Modifier = 'Ctrl' / 'Alt' / 'Meta' ;
KeyValue = 'a' / 'b' / ... ;
SpecialKey = 'Escape' / 'Delete' / 'Space' / 'BackSpace' /
'Intro' / 'Up' / 'Down' / 'Left' / 'Right' /
'Home' / 'End' / 'F1' / ... / 'L1' / ... / 'R1' / ... ;
IdentCommand = 'TtcInsertChar(' Char ')' / NAME '()' ;
Char = KeyValue / OctalValue / Entity ;
OctalValue = '\' NUMBER ;
Entity = DecEntity / HexaEntity ;
DecEntity = '&' '#' NUMBER ';' ;
HexaEntity = '&' '#' 'x' HEXADECIMAL ';' ;
Para ver ejemplos, consulta los archivos estándar amaya.keyboard (en Unix) y amaya.kb (en Windows), que se encuentran en el directorio Amaya/config.
La lista de comandos disponibles es:
TtcNextChar
,
TtcPreviousChar
TtcNextWord
,
TtcPreviousWord
TtcStartOfLine
, TtcEndOfLine
TtcNextLine
,TtcPreviousLine
TtcNextElement
,TtcPreviousElement
,
TtcChildElement
, TtcParentElement
TtcPageDown
,
TtcPageUp
,TtcPageTop
,TtcPageEnd
TtcLineUp
,
TtcLineDown
TtcNextSelChar
,
TtcPreviousSelChar
TtcNextSelWord
,
TtcPreviousSelWord
TtcSelStartOfLine
,
TtcSelEndOfLine
TtcNextSelLine
,TtcPreviousSelLine
DoAction
.NextLinkOrFormElement
.PreviousLinkOrFormElement
.New
, NewTemplate
,
NewCss
, OpenDoc
,
OpenDocInNewWindow
, Reload
,
GotoPreviousHTML
, GotoNextHTML
,
GoToHome
, SaveDocument
,
SaveDocumentAs
, Synchronize
,
SetupAndPrint
, PrintAs
,
CloseDocument
, AmayaClose
TtcUndo
, TtcRedo
,
TtcCutSelection
, TtcCopySelection
,
TtcPaste
, TtcDeleteSelection
,
SetBrowserEditor
, TtcSearchText
,
SpellCheck
, TransformType
,
ConfigGeneral
, ConfigPublish
,
ConfigCache
, ConfigProxy
,
ConfigColor
, ConfigGeometry
,
ConfigLanNeg
, ConfigProfile
,
ConfigTemplates
.ChangeTitle
, CreateAddress
CreateParagraph
, CreateImage
,
CreateHorizontalRule
, CreateBlockQuote
,
CreatePreformatted
, CreateAddress
,
CreateDivision
, CreateNOSCRIPT
,
CreateObject
, CreateParameter
,
CreateIFrame
, CreateBreak("\212")
,
MakeBook
, CreateAreaRect
,
CreateAreaCircle
,
CreateAreaPoly,
CreateForm
,
CreateFileInput
, CreateImageInput
,
CreatePasswordInput
, CreateHiddenInput
,
CreateLabel
, CreateFieldset
,
CreateOptGroup
, CreateToggle
,
CreateRadio
, CreateOption
,
CreateTextInput
, CreateTextArea
,
CreateSubmit
, CreateReset
,
CreateHeading1
, CreateHeading2
,
CreateHeading3
, CreateHeading4
,
CreateHeading5
, CreateHeading6
,
CreateList
, CreateNumberedList
,
CreateDefinitionList
, CreateDefinitionTerm
,
CreateDefinitionDef
, CreateObject
,
CreateParameter
,CreateTable
,
CreateCaption
, CreateTHead
,
CreateTBody
, CreateTFoot
,
CreateRow
, CreateDataCell
,
CreateHeadingCell
, DeleteColumn
CreateBase
,
CreateMeta
, CreateLinkInHead
,
CreateScript
, CreateStyle
,
CreateComment.
SetOnOffEmphasis
,
SetOnOffStrong
, SetOnOffCite
,
SetOnOffDefinition
, SetOnOffCode
,
SetOnOffVariable
, SetOnOffSample
,
SetOnOffKeyboard
, SetOnOffAbbr
,
SetOnOffAcronym
, SetOnOffINS
,
SetOnOffDEL
.SetOnOffItalic
,
SetOnOffBold
, SetOnOffTeletype
,
SetOnOffBig
, SetOnOffSmall
,
SetOnOffSub
, SetOnOffSup
,
SetOnOffQuotation
, SetOnOffBDO
.CreateInlineMath
,
CreateMath
, CreateMROOT
,
CreateMSQRT
, CreateMFRAC
,
CreateMSUBSUP
, CreateMSUB
,
CreateMSUP
, CreateMUNDEROVER
,
CreateMUNDER
, CreateMOVER
,
CreateMROW
, CreateMMULTISCRIPTS
,
CreateMTABLE
LinkToPreviousTarget
,
CreateOrChangeLink
, CreateTarget
,
DeleteAnchor
, MakeID
.ShowButtons
, ShowAddress
,
ShowMapAreas
, ShowTargets
, ZoomIn
,
ZoomOut
, ShowStructure
,
ShowAlternate
, ShowLinks
, ShowToC
,
ShowSource
, ShowLogFile
.TtcChangeCharacters
,
TtcChangeColors
, TtcChangeFormat
,
ChangeBackgroundImage
, CreateClass
,
ApplyClass
, LinkCSS
, OpenCSS
,
DisableCSS
, EnableCSS
, RemoveCSS
,
DoLeftAlign
, DoRightAlign
,
DoCenter
, DoJustify
.AnnotateSelection
,
AnnotateDocument
, LoadAnnotations
,
PostAnnotation
, DeleteAnnotation
,
FilterAnnot
, ConfigAnnot
.HelpAmaya
, HelpAtW3C
,
HelpBrowsing
, HelpSelecting
,
HelpSearching
, HelpViews
,
HelpCreating
, HelpLinks
,
HelpChanging
, HelpTables
,
HelpMath
, HelpSVG
, HelpImageMaps
,
HelpStyleSheets
, HelpAttributes
,
HelpPublishing
, HelpPrinting
,
HelpNumbering
, HelpMakeBook
,
HelpAnnotation
, HelpConfigure
,
HelpShortCuts
, HelpAccess
.