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

GtkEntry clipboard pasting using keyboard #2

Open
pavel-krivanek opened this issue Feb 12, 2021 · 2 comments
Open

GtkEntry clipboard pasting using keyboard #2

pavel-krivanek opened this issue Feb 12, 2021 · 2 comments

Comments

@pavel-krivanek
Copy link
Contributor

On Windows, when a content is pasted into the GtkEntry using a keybaord shortcut (Ctrl+V), some older windows content is used. Pasting from a context menu works as expected and then pasting using the keyboard uses that clipboard content.

1exJaYoV0f

  • put test2 into the clipboard
  • paste it using the context menu
  • put test3 into the clipboard
  • delete, paste using clipboard -> pastes test2
  • delete, paste using clipboard -> pastes test2
  • delete, paste using the context menu -> pastes test3

super strange... maybe a general Gtk bug? Multiline text input works normally with keyboard

@pavel-krivanek
Copy link
Contributor Author

pavel-krivanek commented Feb 12, 2021

GtkApplication ensureRunning.
GtkRunLoop defer: [
	entry := GtkEntry new.
	GtkWindow new
        title: 'Source view example';
        add: (GtkBox newVertical 
            packStart: entry expand: false;
            yourself);
        showAll ]

@pavel-krivanek
Copy link
Contributor Author

Copy shortcut seems to work fine.
To Pharo, it pastes correct string (and it does not fix it for the GtkEntry)

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

No branches or pull requests

1 participant