Jabref: Keyboard paste does not work on MacOS

Created on 11 May 2020  路  25Comments  路  Source: JabRef/jabref

JabRef 5.0--2020-03-06--2e6f433 on Mac OS X 10.15.4 x86_64 Java 13.0.2

Steps to reproduce the behavior:

  1. Copy text in any other application
  2. Try to paste it with Command-V
  3. Nothing happens
  4. Right click to paste via context menu
waiting-for-customer-feedback

Most helpful comment

@homocomputeris : Cheers, well done in narrowing down the issue. So it comes down to the keyboard layout.

All 25 comments

Possible duplicate of https://github.com/JabRef/jabref/issues/6293 (the fix was reverted, so the issue has been re-opened).

But that one says that Ctrl-V does work. On Mac Command-V does _not_ work

@homocomputeris It would be nice if you could check with @Gena928
https://github.com/JabRef/jabref/pull/6419#issuecomment-626393617

In my case the Paste from the context menu works, and there is no double paste.
Or maybe I misunderstand something

@homocomputeris
but Ctrl+V does not work, correct?

@Gena928 No, neither Command-V nor Control-V (I've checked just in case).

@homocomputeris
I just recorded small video on my google drive, where I try to reproduce the error. Looks like it works on my computer, and not works on yours.

Can you please install Java 14 and try to repeat the issue?

Note, that @homocomputeris was not using the latest development version when posting the issue. I do not know, whether that explains the difference but wanted to make both of you aware of it.

Can you please install Java 14 and try to repeat the issue?

Java is bundled with Jabref, how do I use a newer version?

Download the current dev version from here:
https://builds.jabref.org/master/

Note, that since this is a dev version you should ALWAYS have a backup of your JabRef database.

I've downloaded the portable

JabRef 5.1--2020-05-11--754c7ee
Mac OS X 10.15.4 x86_64 
Java 14.0.1
  1. Command-V does not work
  2. Edit - Paste does not work (the Edit entry is highlighted in blue when I press Cmd-V)
  3. Right-click - Paste works

@Gena928 I think I do and see the same thing (including the Edit menu blinking) but nothing is pasted

A random idea - did you originally also try the portable version? If yes, @Gena928 did you use the portable version as well? If not, maybe the issue is restricted to the portable version.

Sorry, cannot help more (I don't have a Mac).

I use full version. Never used portable so far.
I'll download it and try.

@AEgit I use the brew cask version, whatever it is.

I have found the reason: I use US Dvorak. Jabref does not recognize Dvorak shortcuts, while all the other applications do. QWERTY shortcuts (that is, Cmd-J in Dvorak which is the same keys as Cmd-C in QWERTY) work in Jabref.

@homocomputeris : Cheers, well done in narrowing down the issue. So it comes down to the keyboard layout.

@homocomputeris Can you please check if changing the keybinding (Options -> Customize Keybdingss) in JabRef for Paste (category Edit) helps?
By default JabRef assumes ctrl+v and cmd+v for mac

@homocomputeris,
may I ask you to insert a few records in your database?
we have another issue No.6419 , where JabRef inserts duplicates. Please, if possible:

  • open Google Scholar site
  • copy 2-3 BibTex entries, one by one from your browser and paste to JabRef.
  • first one should be OK, the second and third should produce duplicates, as stated here

Are there any duplicates in your database?

By default JabRef assumes ctrl+v and cmd+v for mac

When I change Paste to the Dvorak Ctrl-V, it writes Ctrl-PERIOD. However, it still accepts only Cmd-V in Qwerty (that is Cmd-J in Dvorak).

Are there any duplicates in your database?

No, there is not. But pasting (and any other operation like opening menus and dialogues) takes about 5 seconds.

After changing the keybindings you might need to restart jabref

I did.

@homocomputeris This should now be fixed in latest master
cmd+ C and cmd+ V should work now
Only the Paste menu does not

@Siedlerchr It works for text in text fields. Thanks!

For the paste button from the Menu, this issue is tracked here. There is a jdk/javafx bug which triggers events twice and thefore the buttons in the menu won't work on the maintable. Refs #6293

Keyboard shortcuts do not work once again

JabRef 5.1--2020-08-30--e023aa0
Mac OS X 10.15.7 x86_64 
Java 15

They should work fine in the latest development version from https://builds.jabref.org/master

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Braunch picture Braunch  路  3Comments

jonasstein picture jonasstein  路  3Comments

simonharrer picture simonharrer  路  3Comments

tobiasdiez picture tobiasdiez  路  4Comments

JoKalliauer picture JoKalliauer  路  3Comments