KeyboardInput.Shortcut ====================== .. java:package:: ru.bitec.gs.automation.client :noindex: .. java:type:: public static class Shortcut :outertype: KeyboardInput .. versionadded:: 1.1.0 Класс, упрощающий написание клавиатурных последовательностей, представляющих собой нажатие горячих кнопок. Объекты класса конструируются соответствующими статичными методами класса. Пример конструирования и использования горячей клавиши Ctrl+Alt+Delete: .. parsed-literal:: application.press(Shortcut.CtrlAlt(Keys.DELETE)); .. seealso:: | :java:ref:`Keys ` Fields ------ alt ^^^ .. java:field:: protected final boolean alt :outertype: KeyboardInput.Shortcut ctrl ^^^^ .. java:field:: protected final boolean ctrl :outertype: KeyboardInput.Shortcut key ^^^ .. java:field:: protected final CharSequence key :outertype: KeyboardInput.Shortcut shift ^^^^^ .. java:field:: protected final boolean shift :outertype: KeyboardInput.Shortcut Methods ------- Alt ^^^ .. java:method:: public static KeyboardInput.Shortcut Alt(CharSequence key) :outertype: KeyboardInput.Shortcut Сконструировать горячую клавишу с Alt. :param key: клавиша, используемая в горячей клавише. :return: горячая клавиша AltShift ^^^^^^^^ .. java:method:: public static KeyboardInput.Shortcut AltShift(CharSequence key) :outertype: KeyboardInput.Shortcut Сконструировать горячую клавишу с Alt+Shift. :param key: клавиша, используемая в горячей клавише. :return: горячая клавиша Ctrl ^^^^ .. java:method:: public static KeyboardInput.Shortcut Ctrl(CharSequence key) :outertype: KeyboardInput.Shortcut Сконструировать горячую клавишу с Ctrl. :param key: клавиша, используемая в горячей клавише. :return: горячая клавиша CtrlAlt ^^^^^^^ .. java:method:: public static KeyboardInput.Shortcut CtrlAlt(CharSequence key) :outertype: KeyboardInput.Shortcut Сконструировать горячую клавишу с Ctrl+Alt. :param key: клавиша, используемая в горячей клавише. :return: горячая клавиша CtrlAltShift ^^^^^^^^^^^^ .. java:method:: public static KeyboardInput.Shortcut CtrlAltShift(CharSequence key) :outertype: KeyboardInput.Shortcut Сконструировать горячую клавишу с Ctrl+Alt+Shift. :param key: клавиша, используемая в горячей клавише. :return: горячая клавиша CtrlShift ^^^^^^^^^ .. java:method:: public static KeyboardInput.Shortcut CtrlShift(CharSequence key) :outertype: KeyboardInput.Shortcut Сконструировать горячую клавишу с Ctrl+Shift. :param key: клавиша, используемая в горячей клавише. :return: горячая клавиша Shift ^^^^^ .. java:method:: public static KeyboardInput.Shortcut Shift(CharSequence key) :outertype: KeyboardInput.Shortcut Сконструировать горячую клавишу с Shift. :param key: клавиша, используемая в горячей клавише :return: горячая клавиша