Class Shortcuts

java.lang.Object
de.tum.cit.ase.editor.input.Shortcuts

public class Shortcuts extends Object
The Shortcuts class is responsible for loading and managing keyboard shortcuts. It utilizes the Json library for serialization and the Preferences class for storing shortcut configurations.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    The EDITOR class represents a collection of static shortcuts for editing actions.
    static final record 
    The Shortcut class represents a shortcut with one or more keys.
    static class 
    The UI class represents a collection of static shortcuts for various UI actions.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    load(Class<?> initClass)
    Loads and initializes shortcuts from the specified class.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Shortcuts

      public Shortcuts()
  • Method Details

    • load

      public static void load(Class<?> initClass)
      Loads and initializes shortcuts from the specified class.
      Parameters:
      initClass - The class containing the shortcut fields.