Add Enhanced Keyboard Shortcut Mechanism #91
@ -5,6 +5,7 @@ import javafx.scene.input.*;
|
||||
import envoy.client.data.Context;
|
||||
import envoy.client.helper.ShutdownHelper;
|
||||
import envoy.client.ui.SceneContext.SceneInfo;
|
||||
import envoy.client.util.UserUtil;
|
||||
|
||||
/**
|
||||
* Envoy-specific implementation of the keyboard-shortcut interaction offered by
|
||||
@ -30,7 +31,7 @@ public class EnvoyShortcutConfig {
|
||||
|
||||
// Add the option to logout using "Control"+"Shift"+"L" if not in login scene
|
||||
instance.addForNotExcluded(new KeyCodeCombination(KeyCode.L, KeyCombination.CONTROL_DOWN, KeyCombination.SHIFT_DOWN),
|
||||
ShutdownHelper::logout,
|
||||
UserUtil::logout,
|
||||
SceneInfo.LOGIN_SCENE);
|
||||
|
||||
// Add option to open settings scene with "Control"+"S", if not in login scene
|
||||
|
Reference in New Issue
Block a user