Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disable OBS hotkeys when window is not in focus
diff --git a/UI/data/locale/de-DE.ini b/UI/data/locale/de-DE.ini
index 5051ea51..791e622b 100644
--- a/UI/data/locale/de-DE.ini
+++ b/UI/data/locale/de-DE.ini
@@ -692,7 +692,7 @@ Basic.Settings.Advanced.Network="Netzwerk"
Basic.Settings.Advanced.Network.BindToIP="Interface"
Basic.Settings.Advanced.Network.EnableNewSocketLoop="Neuen Netzwerkcode aktivieren"
Basic.Settings.Advanced.Network.EnableLowLatencyMode="Niedriger Latenzmodus"
-Basic.Settings.Advanced.Hotkeys.DisableHotkeysInFocus="Hotkeys deaktivieren, wenn das Hauptfenster im Fokus ist"
+Basic.Settings.Advanced.Hotkeys.DisableHotkeysInFocus="Hotkeys deaktivieren, wenn das Hauptfenster nicht im Fokus ist"
Basic.AdvAudio="Erweiterte Audioeigenschaften"
Basic.AdvAudio.Name="Name"
@@ -775,4 +775,3 @@ ChangeBG="Farbe auswählen"
CustomColor="Benutzerdefinierte Farbe"
BrowserSource.EnableHardwareAcceleration="Browser Hardwarebeschleunigung aktivieren"
-
diff --git a/UI/data/locale/en-US.ini b/UI/data/locale/en-US.ini
index 3b06e768..6d0071ef 100644
--- a/UI/data/locale/en-US.ini
+++ b/UI/data/locale/en-US.ini
@@ -759,7 +759,7 @@ Basic.Settings.Advanced.Network="Network"
Basic.Settings.Advanced.Network.BindToIP="Bind to IP"
Basic.Settings.Advanced.Network.EnableNewSocketLoop="Enable new networking code"
Basic.Settings.Advanced.Network.EnableLowLatencyMode="Low latency mode"
-Basic.Settings.Advanced.Hotkeys.DisableHotkeysInFocus="Disable hotkeys when main window is in focus"
+Basic.Settings.Advanced.Hotkeys.DisableHotkeysInFocus="Disable hotkeys when main window is not in focus"
Basic.Settings.Advanced.AutoRemux="Automatically remux to mp4"
Basic.Settings.Advanced.AutoRemux.MP4="(record as mkv)"
diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp
index a03c2e4b..4cdc77c7 100644
--- a/UI/obs-app.cpp
+++ b/UI/obs-app.cpp
@@ -1205,7 +1205,7 @@ static bool StartupOBS(const char *locale, profiler_name_store_t *store)
inline void OBSApp::ResetHotkeyState(bool inFocus)
{
obs_hotkey_enable_background_press(
- inFocus || enableHotkeysInFocus);
+ enableHotkeysInFocus);
}
void OBSApp::EnableInFocusHotkeys(bool enable)
@@ -2243,7 +2243,7 @@ int main(int argc, char *argv[])
} else if (arg_is(argv[i], "--help", "-h")) {
std::cout <<
- "--help, -h: Get list of available commands.\n\n" <<
+ "--help, -h: Get list of available commands.\n\n" <<
"--startstreaming: Automatically start streaming.\n" <<
"--startrecording: Automatically start recording.\n" <<
"--startreplaybuffer: Start replay buffer.\n\n" <<
@@ -2264,7 +2264,7 @@ int main(int argc, char *argv[])
exit(0);
} else if (arg_is(argv[i], "--version", "-V")) {
- std::cout << "OBS Studio - " <<
+ std::cout << "OBS Studio - " <<
App()->GetVersionString() << "\n";
exit(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment