Skip to content
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 \cite{citation key} cmd+C not working in macOS #9096

Open
2 tasks done
frosales258 opened this issue Aug 26, 2022 · 10 comments
Open
2 tasks done

Copy \cite{citation key} cmd+C not working in macOS #9096

frosales258 opened this issue Aug 26, 2022 · 10 comments

Comments

@frosales258
Copy link

JabRef version

5.7 (latest release)

Operating system

macOS

Details on version and operating system

macOS Monterey 12.5.1

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. I changed in Options > Preferences > Key binding Edit > Copy \cite{citation key} to Ctrl+C, as cmd+C does not work

  2. After rebooting, the function "Copy \cite{key}" works well from the menu > Edit > Copy... > Copy \cite{citation key} where actually, the key binding appears as cmd+C (see image and log)

Captura de Pantalla 2022-08-26 a la(s) 11 50 20

  1. However, when I try the key binding cmd+C in the main window, JabRef goes to the first entry with an author starting by C in my library (in this case, Campbell et al.) and copies the citation key corresponding to that entry (\cite{Campbell1986}) not to the entry that I was highlighting

Captura de Pantalla 2022-08-26 a la(s) 11 50 26

  1. Further, Ctrl+C does not work

I would like cmd+C to work exactly as the menu > Edit > Copy... > Copy \cite{citation key}

Thanks in advance, kind regards!

Appendix

Detail information:
Trust store path: /Users/macbeth/Library/Application Support/JabRef/ssl/truststore.jks
Not updating theme because it hasn't changed
Theme set to Theme{type=DEFAULT, name=''} with base css StyleSheet{jrt:/org.jabref/org/jabref/gui/Base.css}
Index path for /Users/macbeth/Google Drive ([email protected])/papers/JabRef/AllPapers.bib is /Users/macbeth/Library/Application Support/JabRef/lucene92
Copied '\cite{Barnes2002}' to clipboard.
Copied '\cite{Rhea2021}' to clipboard.
Copied '\cite{Berg2013}' to clipboard.
Copied '\cite{Bresolin2007}' to clipboard.
Copied '\cite{Campbell1986}' to clipboard.
Copied '\cite{Campbell1986}' to clipboard.
Copied '\cite{Campbell1986}' to clipboard.
Copied '\cite{Campbell1986}' to clipboard.
Copied '\cite{Campbell1986}' to clipboard.
Copied '\cite{Campbell1986}' to clipboard.
Copied '\cite{Campbell1986}' to clipboard.
Copied '\cite{Campbell1986}' to clipboard.
Copied '\cite{Campbell1986}' to clipboard.
@Siedlerchr
Copy link
Member

On Mac by default, JabRef replaces CTRL with the meta key. This is most likely the option key. Maybe this helps you?

@frosales258
Copy link
Author

frosales258 commented Sep 19, 2022 via email

@Siedlerchr
Copy link
Member

Okay, thanks for the feedback. I will try to take another look at it the next days

@hywu-ag
Copy link

hywu-ag commented Dec 26, 2023

For JabRef 5.11, MacOS 14.2.1, this problem is still there and reamins unsolved! It has been one year.

@Siedlerchr
Copy link
Member

Siedlerchr commented Dec 26, 2023

@hywu-ag Sorry, to hear this but for me the default shortcuts work:
Ctrl is mapped to cmd

grafik

@pcdi
Copy link

pcdi commented Jan 12, 2024

I had encountered the same problem up until 5.9/5.10 (see #9276 (comment)), but it seems to be resolved in this version:

JabRef 5.12--2023-12-24--4233bad
Mac OS X 14.2.1 aarch64 
Java 21.0.1 
JavaFX 21.0.1+6

However: There still is one difference in behavior between running the copy command from the menu (Edit > Copy) and running it via keyboard shortcut (CMD-C). If I copy the entry via keyboard shortcut, the notification at the bottom of the window “Copied 1 entry.“ pops up twice. If I copy via menu, it only shows once.

For the extended copy commands, such as copy cite key (CMD-Shift-K) etc. the behavior is not different between menu and shortcut usage.

@koppor
Copy link
Member

koppor commented Mar 25, 2024

Related issue: #10771

@koppor
Copy link
Member

koppor commented May 16, 2024

Related issue: #11294

@koppor
Copy link
Member

koppor commented May 16, 2024

However: There still is one difference in behavior between running the copy command from the menu (Edit > Copy) and running it via keyboard shortcut (CMD-C). If I copy the entry via keyboard shortcut, the notification at the bottom of the window “Copied 1 entry.“ pops up twice. If I copy via menu, it only shows once.

It seems that copy is triggered once per macOS operating system call and once per key bindings. Right @Siedlerchr ?

@Siedlerchr
Copy link
Member

Yes, the key binding is always triggered twice in the scene when it's also attached for a menu. I think this is because of the global menu mac uses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants