It is useful to invoke menu commands directly from the keyboard. The Thot toolkit enables you accomplish this using an application keyboard shortcuts file. This file defines a list of associations between an invoked command and a keyboard sequence.
The syntax used to define an association is:
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' /
ááááááááááááá 'Enter' / '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 ';' ;
To view an example, see the standard files amaya.keyboard (for Unix platforms) and amaya.kb (for Windows platforms), which are located in the Amaya/config directory.
The list of available commands is (a more up to date list can be found in
Amaya's sources :
Amaya/amaya/EDITOR.A
) :
TtcNextChar
,
TtcPreviousChar
TtcNextWord
,
TtcPreviousWord
TtcStartOfLine
, TtcEndOfLine
TtcNextLine
,TtcPreviousLine
TtcNextElement
,TtcPreviousElement
,
TtcChildElement
, TtcParentElement
TtcPageDown
,
TtcPageUp
,TtcPageTop
,TtcPageEnd
TtcLineUp
,
TtcLineDown
TtcNextSelChar
,
TtcPreviousSelChar
TtcNextSelWord
,
TtcPreviousSelWord
TtcStartOfLine
,TtcSelStartOfLine
,
TtcSelEndOfLine
TtcNextSelLine
,TtcPreviousSelLine
DoAction
.NextLinkOrFormElement
.PreviousLinkOrFormElement
.NewXHTML11
,
NewXHTMLTransitional
, NewXHTMLStrict
,
NewXHTMLStrict
, NewMathML
, NewSVG
,
NewCss
, NewTemplate
, OpenDoc
,
Reload
, GotoPreviousHTML
,
GotoNextHTML
, GoToHome
,
SaveDocument
, SaveDocumentAs
,
Synchronize
, ShowLogFile
,
SetupAndPrint
, PrintAs
,
CloseDocument
,
AmayaCloseTab
,AmayaCloseWindow
,
AmayaClose
.TtcUndo
, TtcRedo
,
TtcCutSelection
, TtcCopySelection
,
TtcPaste
, TtcDeleteSelection
,
SetBrowserEditor
, TtcSearchText
,
SpellCheck
, TransformType
,
ConfigAmaya
.ChangeTitle
, CreateAddress
CreateParagraph
, CreateImage
,
CreateHorizontalRule
, CreateBlockQuote
,
CreatePreformatted
, CreateAddress
,
CreateDivision
, CreateNOSCRIPT
,
CreateObject
, CreateParameter
,
CreateIFrame
,
CreateBreak
,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
.ShowPanel
,FullScreen
,ShowMapAreas
,
ShowTargets
, ZoomIn
, ZoomOut
,
ShowFormatted
, ShowStructure
,
ShowAlternate
, ShowLinks
, ShowToC
,
ShowSource
,
ShowTimeLineWindow
,SplitUnsplitPage
.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
.