Keyboard Shortcuts in Amaya

Keyboard shortcuts are useful to invoke menu commands directly from the keyboard. The Thot toolkit enables you accomplish this using application keyboard shortcuts files (one per paltform). These files define a list of associations between an invoked command and a keyboard sequence. They are located in the Amaya/config directory: amaya.keyboard (Linux), amaya.kb (Windows) and amaya.kb-mac

These files can be modified to define your own shortcuts. 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 ';' ;

The list of available commands is (a more up to date list can be found in Amaya's sources : Amaya/amaya/EDITOR.A) :