Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER for macOS

Reply
 
Thread Tools Display Modes
Old 11-10-2016, 07:56 AM   #1
knister
Human being with feelings
 
Join Date: Nov 2016
Posts: 11
Default Close File/Project, but not the app?

Hello,

the normal behavior on OSX is, that apps don't quit, when the file will be closed. In some apps, like Reaper also, the app quits with the closing of a project or a file.

Could this behavior be prevented, so that Reaper will be like other OSX-apps (quitting the app with Cmd+Q, closing the file with Cmd+W)? Or did I overlooked such a sitting in the app?

Thank you!
knister is offline   Reply With Quote
Old 11-12-2016, 07:20 AM   #2
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 5,844
Default

Quote:
Originally Posted by knister View Post
Could this behavior be prevented, so that Reaper will be like other OSX-apps (quitting the app with Cmd+Q, closing the file with Cmd+W)? Or did I overlooked such a sitting in the app?
Open the Action List and change the shortcut for the appropriate actions.
solger is offline   Reply With Quote
Old 03-14-2017, 02:22 PM   #3
JonasHAnd
Human being with feelings
 
Join Date: Apr 2015
Posts: 99
Default

Hi!

I also want CMD+W to close the project window, however this is impossible as far as I can tell.

When trying to add CMD+W as shortcut for "close current project tab"
this just closes the add shortcut window!

Momentum 22!

Any ideas?
JonasHAnd is offline   Reply With Quote
Old 03-15-2017, 09:52 AM   #4
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 5,844
Default

Quote:
Originally Posted by JonasHAnd View Post
I also want CMD+W to close the project window, however this is impossible as far as I can tell.

When trying to add CMD+W as shortcut for "close current project tab"
this just closes the add shortcut window!

Any ideas?
Cmd+W is the default global shortcut in OSX for closing the front window.
So the easiest way is to assign a different shortcut in Reaper like, for instance, Cmd+Shift+W.

Last edited by solger; 03-15-2017 at 10:12 AM.
solger is offline   Reply With Quote
Old 03-15-2017, 12:37 PM   #5
JonasHAnd
Human being with feelings
 
Join Date: Apr 2015
Posts: 99
Default

Thanks solger!

Yes thats a workaround, but I find it strange that this global key command cannot be used on closing the project tabs as well. This creates inconsistency in window behavior. Maybe I'm nitpicky.

Isn't there a way to edit the shortcuts in .Reaperkeymap file and just paste the right code for CMD+W directly?

If anyone knows how to do this that would solve the problem.
JonasHAnd is offline   Reply With Quote
Old 03-16-2017, 02:17 AM   #6
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 5,844
Default

Quote:
Originally Posted by JonasHAnd View Post
Isn't there a way to edit the shortcuts in .Reaperkeymap file and just paste the right code for CMD+W directly?
Try the following:

1) Assign Cmd+Shift+W to the action 'Close current project tab' (this is just a pre-setup for finding the keyboard shorcut in step 5 more easily)

2) Options -> Show REAPER resource path in explorer/finder
3) Just in case: make a backup copy of the 'reaper-kb.ini' file to a different folder, so you can copy the backup file back if necessary

4) Open the reaper-kb.ini in the Reaper resource path with a text editor
5) Search for the line with 'KEY 13 87 40860 0' (40860 is the action ID for 'Close current project tab')
6) Change the 13 to a 9 so that the entry looks like this: KEY 9 87 40860 0

7) Save the file changes and restart Reaper
8) Now using Cmd+W should work


The trickier part for editing the reaper-kb.ini file is to find out which numbers to use for which key shortcut

Last edited by solger; 03-16-2017 at 03:37 AM.
solger is offline   Reply With Quote
Old 03-16-2017, 01:35 PM   #7
JonasHAnd
Human being with feelings
 
Join Date: Apr 2015
Posts: 99
Default

You are a brilliant! It worked!

Thank you so much

May I ask, how did you get the numbers?
JonasHAnd is offline   Reply With Quote
Old 03-17-2017, 06:05 AM   #8
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 5,844
Default

Quote:
Originally Posted by JonasHAnd View Post
May I ask, how did you get the numbers?
Sure, let's have a look at KEY 9 87 40860 0

KEY = key shortcut
9 = Code for Modifier Key (combination) (Alt/Opt, Ctrl, Shift, Cmd, Cmd+Shift, etc.) -> in this case Cmd
87 = ASCII Code for the key -> in this case 87 = W
40860 = Action ID -> 'Close current project tab'


Changing the first number changes the Modifier Key, As example:

KEY 1 87 40860 0 --> 1 = no Modifer => action is triggered just by pressing 'W'.
KEY 5 87 40860 0 --> 5 = Shift Modifier => action is triggered by pressing 'Shift+W'


You can probably find out the second number (key code) directly by looking at an ASCII table: http://www.ascii-code.com/
But the easier way to find out the first two numbers (modifier + key code) is by simply assigning an action via the Action List to just a key ('W') or a modifier+key ('Shift+W' or 'Cmd+Shift+W'). Then search the reaper-kb.ini for the entry with the corresponding Action ID and check the newly generated numbers ...

To get the Action ID, you can Right-Click on an action in the Action List and choose 'Copy selected action command ID'. Then paste the copied ID into the file.
Or Right-Click - > 'Show action IDs' to display the ID column and enter the shown value manually.

Last edited by solger; 03-17-2017 at 06:16 AM.
solger is offline   Reply With Quote
Old 03-17-2017, 06:15 AM   #9
JonasHAnd
Human being with feelings
 
Join Date: Apr 2015
Posts: 99
Default

Thanks again!
JonasHAnd is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:31 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.