# Tryton 7 - Clipboard on mac

**URL:** https://discuss.tryton.org/t/tryton-7-clipboard-on-mac/7945
**Category:** User
**Tags:** tryton
**Created:** [October 11, 2024, 3:26pm UTC](https://discuss.tryton.org/t/tryton-7-clipboard-on-mac/7945 "2024-10-11T15:26:40Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)
#### Post date: [October 11, 2024, 3:26pm UTC](https://discuss.tryton.org/t/tryton-7-clipboard-on-mac/7945/1 "2024-10-11T15:26:40Z")

</div>

Hi everyone,  
I recently upgraded to Tryton version 7 (from version 5!).  
Version 5 of Tryton on Mac used the control+c and control+v key combinations to copy and paste values.  
In Tryton 7, on some forms, these key combinations launch different actions.  
For example, in Party, the control+v combination opens the Sale tab (in Italian “ **v** endita”).

In Tryton, the command+c and command+v combinations have never worked.

Is there a way to customize the key combination?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [October 11, 2024, 4:04pm UTC](https://discuss.tryton.org/t/tryton-7-clipboard-on-mac/7945/2 "2024-10-11T16:04:09Z")

</div>

> [@Vincenzo](#):
>
> Version 5 of Tryton on Mac used the control+c and control+v key combinations to copy and paste values.  
> In Tryton 7, on some forms, these key combinations launch different actions.

We removed the custom copy/paste to let to GTK framework which is using the OS setup.

> [@Vincenzo](#):
>
> In Tryton, the command+c and command+v combinations have never worked.

Normally it should work as this is managed by GTK.

> [@Vincenzo](#):
>
> Is there a way to customize the key combination?

You can customize the Tryton’s shortcut by editing the [`accel.map` file](https://docs.tryton.org/latest/client-desktop/usage.html#configuration-file).

---

<div class="post-metadata">

### Author: ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)
#### Post date: [October 12, 2024, 7:59am UTC](https://discuss.tryton.org/t/tryton-7-clipboard-on-mac/7945/3 "2024-10-12T07:59:52Z")

</div>

> [@ced](#):
>
> Normally it should work as this is managed by GTK.

The key combinations control+c and control+v (normally used in mac OS) do not work in Tryton 7.0

> [@ced](#):
>
> You can customize the Tryton’s shortcut by editing the [`accel.map` file](https://docs.tryton.org/latest/client-desktop/usage.html#configuration-file).

Even if I enter new key combinations, after closing Tryton they are deleted.  
I tried to enter copy (command+c) and past (command+v) but they do not work…

---

<div class="post-metadata">

### Author: ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)
#### Post date: [October 12, 2024, 8:08am UTC](https://discuss.tryton.org/t/tryton-7-clipboard-on-mac/7945/4 "2024-10-12T08:08:23Z")

</div>

In [accel.map](https://docs.tryton.org/latest/client-desktop/usage.html#configuration-file) file the command “command+n” launches the action “Form new”, but in Tryton 7 (ARM processor) I have to use “control+n” to launch it.  
Something is wrong…

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [October 12, 2024, 8:21am UTC](https://discuss.tryton.org/t/tryton-7-clipboard-on-mac/7945/5 "2024-10-12T08:21:52Z")

</div>

> [@Vincenzo](#):
>
> The key combinations control+c and control+v (normally used in mac OS) do not work in Tryton 7.0

The copy/paste of text is left to GTK.  
But if you are talking about the copy/paste of rows in a list view, then the control key is hard-coded to MOD2 for MacOS and CONTROL for others.

> [@Vincenzo](#):
>
> Even if I enter new key combinations, after closing Tryton they are deleted.

Tryton save the AccelMap on shutdown and loaded on start.  
I suspect that you modify the content but not remove the commenting `;`.

> [@Vincenzo](#):
>
> In [accel.map](https://docs.tryton.org/latest/client-desktop/usage.html#configuration-file) file the command “command+n” launches the action “Form new”, but in Tryton 7 (ARM processor) I have to use “control+n” to launch it.

It looks like `Primary` is linked to different keys depending on the platform of MacOS.  
This is something to investigate on the GTK side.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [October 12, 2024, 8:28am UTC](https://discuss.tryton.org/t/tryton-7-clipboard-on-mac/7945/6 "2024-10-12T08:28:14Z")

</div>

> [@ced](#):
>
> It looks like `Primary` is linked to different keys depending on the platform of MacOS.

I suspect that on arm64 build they switch the values of `CONTROL_MASK` with `MOD2_MASK` and not on x86\_64. So our test for `sys.platform == 'darwin'` is no more relevant for arm64.

I think you can open a bug for this one.
