-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy, Paste & Select All Hotkeys not working in Browser Source Interact & Docks (macOS) #365
Comments
Note: this was split from #238. Honestly, this is pretty much expected behaviour. The way hotkeys work on macOS as an operating system is that whatever is in the menu bar takes priority. To properly fix this, we'd have to ensure OBS knows what context the user is in, and modify the Edit menu to replace the actions of copy/paste/select all with their CEF counterparts. Unfortunately, I don't know how viable/possible this is. I know CEF in general is very bad at notifying the parent application (in this case OBS) whether it's focused. The good(?) news is the API to perform the actions themselves does exist as part of CefFrame(), including
|
|
The OBS Browser plugin uses CEF internally, but it doesn't expose the source code for the CEF part in a .cpp file. Instead, you'll have to modify the JavaScript code that communicates with the plugin to create a custom context menu with the desired functionality. To create a custom Edit menu for the OBS Browser Source, follow these steps: Set up a new local HTML file that will be used as the Browser Source: Create a new HTML file with the following basic structure: javascript Inside the event listener, create an HTML element for the custom context menu: const pasteItem = document.createElement('button'); const selectAllItem = document.createElement('button'); Add the context menu to the document body: Open OBS Studio. |
|
is there a possibility that the copy paste is also installed with the hotkey in a next update? The function has otherwise no use for me. |
This is a CEF related bug. please try https://glitch.com/edit/#!/async-clipboard-text in web browser and cef demo such as cefclient, you can find that. |
Any update on this (that works for non-dev users)? |
Operating System Info
macOS 11
Other OS
No response
OBS Studio Version
27.2.4
OBS Studio Version (Other)
No response
OBS Studio Log URL
All
OBS Studio Crash Log URL
No response
Expected Behavior
Using CMD+C, CMD+V & CMD+A should copy, paste and select all respectively.
Current Behavior
Using mouse and contextual menu is the only way to currently do this.
Steps to Reproduce
Anything else we should know?
No response
The text was updated successfully, but these errors were encountered: