mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[register] Delay post-ime reset of the selection.
Works around bug 798587.
This commit is contained in:
parent
16dca1ad5e
commit
65d3546f10
@ -1833,6 +1833,11 @@ gnucash_sheet_key_press_event_internal (GtkWidget *widget, GdkEventKey *event)
|
||||
/* Followed by the input method */
|
||||
if (gtk_entry_im_context_filter_keypress (GTK_ENTRY(sheet->entry), event))
|
||||
{
|
||||
/* There's sometimes a timing issue when running under KDE
|
||||
* Plasma where this call removes the selection. This 1ms
|
||||
* sleep prevents it.
|
||||
*/
|
||||
usleep(1000);
|
||||
/* Restore the saved cursor position in case GtkEntry's IMContext
|
||||
* handlers messed with it after we set it in our insert_cb.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user