ModPlug Central

OpenMPT => Help and Questions => Topic started by: InfinitelyRecurringPatter on May 16, 2023, 04:49:53

Title: Ctrl-C/Ctrl-V/Ctrl-X not working (under Wine)
Post by: InfinitelyRecurringPatter on May 16, 2023, 04:49:53
Hello! I'm running OpenMPT under Wine and I've noticed that the usual copy-paste-cut keybindings do not work, while others such as selecting the channel (CTRL+L) work just fine. And I've checked it in the keybindings menu and they are set properly.
Does anyone know what could be causing this?
Title: Re: Ctrl-C/Ctrl-V/Ctrl-X not working (under Wine)
Post by: Saga Musix on May 16, 2023, 07:59:53
I tried this on Wine 8.5.0 and it's working just fine here. I guess there is two possible problems:
- The shortcut is recognized but the clipboard integration in Wine is somehow broken
- The shortcut is overridden from the outside. Maybe depends on the desktop environment?

Can you check if changing the copy/paste shortcuts to some other known-working key combination makes them work?
Title: Re: Ctrl-C/Ctrl-V/Ctrl-X not working (under Wine)
Post by: InfinitelyRecurringPatter on May 16, 2023, 16:38:55
The clipboard integration seems fine, as the commands work via the toolbar or the context menu, and using the keybindings under Alt-X/Alt-C/Alt-V also work fine.
The shortcut could be getting overridden from outside then, but I've tried running wine's Notepad (under the same prefix) and the keybindings work fine over there.
Then I set the keybindings back to Ctrl-X/Ctrl-C/Ctrl-V, and they worked! But the problem comes back after restarting OpenMPT.
Title: Re: Ctrl-C/Ctrl-V/Ctrl-X not working (under Wine)
Post by: Saga Musix on May 16, 2023, 17:30:10
If you hit those key combinations while you're in the shortcut finder (https://wiki.openmpt.org/Manual:_Setup/Keyboard#Find) (i.e. the input field labelled "Key:"), are the key combinations registered at all, and are the corresponding shortcuts found?
Title: Re: Ctrl-C/Ctrl-V/Ctrl-X not working (under Wine)
Post by: InfinitelyRecurringPatter on May 16, 2023, 17:37:31
Yes.
Title: Re: Ctrl-C/Ctrl-V/Ctrl-X not working (under Wine)
Post by: Saga Musix on May 16, 2023, 17:40:58
The only remaining thing on OpenMPT's side that I could imagine then is that for whatever reason it thinks your keyboard focus is on an edit field, in which case shortcuts that should typically be usable in a text field (Ctrl+A/X/C/V, Home, End, cursor keys) are ignored. But if that was the case, you should also not be able to use cursor keys for navigating the pattern editor, for example.

Can you maybe download an older 1.30 build (https://download.openmpt.org/archive/openmpt/1.30/) of OpenMPT and see if the shortcuts still work there?
Title: Re: Ctrl-C/Ctrl-V/Ctrl-X not working (under Wine)
Post by: InfinitelyRecurringPatter on May 16, 2023, 18:04:28
They don't seem to work over there either, sadly.
Thanks for the help, anyways! Since the Alt-X/Alt-C/Alt-V combination is working, I'll use that.
Title: Re: Ctrl-C/Ctrl-V/Ctrl-X not working (under Wine)
Post by: farvardin on October 20, 2023, 15:30:56
Quote from: InfinitelyRecurringPatter on May 16, 2023, 04:49:53Hello! I'm running OpenMPT under Wine and I've noticed that the usual copy-paste-cut keybindings do not work
Does anyone know what could be causing this?

I've add this problem, also the function and some arrows keys didn't work correctly. I couldn't also use CTRL + S to save. (it would enter a note instead)

 I've fixed it by removing my ~/.wine/drive_c/users/user/Application Data/OpenMPT folder, AND by setting with winecfg a windows drive letter (X: or Z: or whatever) assigned to the root (/). If I don't do this, then after deleting the app data openmpt folder, I get the wizard, and when I select a keyboard layout, I get a "Unix\path" not found error. If I have a windows letter like X: linked to / then openMPT can use it. If it's not set, it's still possible to browse on the system (to load another key layout or music files), but there will be other problems.