Skip to content

Commit

Permalink
Hotkeys settings bugfix (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingpie authored Sep 8, 2020
1 parent 84f9d34 commit 6b56768
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 66 deletions.
2 changes: 1 addition & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

var configuration = Argument("configuration", "Release");
var output = Argument("output", "artifacts");
var version = Argument("version", "v0.6");
var version = Argument("version", "v0.7");

var sln = "windows-terminal-quake.sln";
var bin = "./windows-terminal-quake/bin";
Expand Down
6 changes: 1 addition & 5 deletions windows-terminal-quake/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,7 @@ public static void Reload(bool notify)

public class SettingsDto
{
public List<Hotkey> Hotkeys { get; set; } = new List<Hotkey>()
{
new Hotkey() { Modifiers = KeyModifiers.Control, Key = Keys.Oemtilde },
new Hotkey() { Modifiers = KeyModifiers.Control, Key = Keys.Q }
};
public List<Hotkey> Hotkeys { get; set; }

public bool Notifications { get; set; } = true;

Expand Down
86 changes: 26 additions & 60 deletions windows-terminal-quake/windows-terminal-quake.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
// The keys that can be used to toggle the terminal
// The keys that can be used to toggle the terminal.
// See "HotKeys" bellow for possible values.
"HotKeys": [
{
"Modifiers": "Control",
Expand All @@ -11,88 +12,53 @@
}
],

// Whether to show notifications when the app starts and when the settings are reloaded
// Whether to show notifications when the app starts and when the settings are reloaded.
"Notifications": true,

// Make the window see-through (applies to the entire window, including the title bar)
// Make the window see-through (applies to the entire window, including the title bar).
// 0 (invisible) - 100 (opaque)
"Opacity": 80,

// How long the toggle up/down takes in milliseconds
// How long the toggle up/down takes in milliseconds.
"ToggleDurationMs": 250,

// How far the terminal should come down, in percentage (eg. 50 = half way, 100 = full screen)
// How far the terminal should come down, in percentage (eg. 50 = half way, 100 = full screen).
"VerticalScreenCoverage": 100,

// How much horizontal space the terminal should use. When this is below 100, the terminal is centered.
// This can also be above 100, which can be useful to compensate for the window not always taking a 100% of the screen width,
// due to the terminal being bound to column widths (eg. try 100.5 or 101).
"HorizontalScreenCoverage": 100
"HorizontalScreenCoverage": 100,

// HotKeys.Modifiers:
// Alt, Control, Shift, Windows
// HotKeys.Key:
// When clicking or alt-tabbing away to another app, the terminal will automatically (and instantly) hide.
"HideOnFocusLost": true

// // Special keys
// Alt
// Back
// CapsLock
// Control
// Escape
// LControlKey
// LShiftKey
// LWin
// RControlKey
// RShiftKey
// RWin
// Shift
// Space
// Tab
// # HotKeys
// ## Modifiers
// Alt, Control, Shift, Windows
//
// // Middle part of the keyboard
// Delete
// End
// Home
// Insert
// PageDown
// PageUp
// PrintScreen
// ## Key
// ### Special keys
// Alt, Back, CapsLock, Control, Escape, LControlKey, LShiftKey, LWin, RControlKey, RShiftKey, RWin, Shift, Space, Tab
//
// Down
// Left
// Right
// Up
// ### Middle part of the keyboard
// Delete, End, Home, Insert, PageDown, PageUp, PrintScreen
// Down, Left, Right, Up
//
// // Number keys
// ### Number keys
// D0 - D9
//
// // Letters
// ### Letters
// A-Z
//
// // Numpad
// ### Numpad
// NumPad0 - NumPad9
// Add
// Decimal
// Divide
// Multiply
// NumLock
// Separator
// Subtract
// Add, Decimal, Divide, Multiply, NumLock, Separator, Subtract
//
// // Function keys
// ### Function keys
// F1 - F24
//
// // Special characters
// OemBackslash
// OemCloseBrackets
// Oemcomma
// OemMinus
// OemOpenBrackets
// OemPeriod
// OemPipe
// Oemplus
// OemQuestion
// OemQuotes
// OemSemicolon
// Oemtilde
// ### Special characters
// OemBackslash, OemCloseBrackets, Oemcomma, OemMinus, OemOpenBrackets,
// OemPeriod, OemPipe, Oemplus, OemQuestion, OemQuotes, OemSemicolon, Oemtilde
}

0 comments on commit 6b56768

Please sign in to comment.