Cannot send backspace using IBus' forward_key_event

Bug #1124890 reported by Trung Ngô
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Unity
Triaged
Low
Unassigned
ibus (Ubuntu)
New
Undecided
Unassigned
unity (Ubuntu)
Triaged
Low
Unassigned

Bug Description

I'm trying to eleminate the use of pre-editing in my input method. In order to do so, I have to send fake backspace events to manipulate the text buffer. Unity is the only application I've tried where this approach doesn't work.

In my IBus engine, I'd use this call to send a fake backspace:

    self.forward_key_event(IBus.BackSpace, 14, 0)

Attached is a minimal program to test this bug. It needs `python-gi`, `gir1.2-ibus` and `ibus` running to work. How to test:

1. Open gedit, type something.
2. Run the script `python ibus_template.py`
3. Press any key in gedit. With each keypress, a character will be removed from gedit's buffer.
4. Repeat with Unity's Dash

Tags: ibus
Revision history for this message
Trung Ngô (ndtrung4419) wrote :
description: updated
Andrea Azzarone (azzar1)
tags: added: ibus
Changed in unity:
importance: Undecided → Low
Changed in unity (Ubuntu):
importance: Undecided → Low
Changed in unity:
status: New → Triaged
Changed in unity (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.