Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 929877 Details for
Bug 1128912
With the new "rusle" table in ibus-table-cyrillic, typing space works strangely
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
0001-Pass-IBus.KEY_KP_Enter-to-the-application-if-the-pre.patch
0001-Pass-IBus.KEY_KP_Enter-to-the-application-if-the-pre.patch (text/plain), 3.54 KB, created by
Mike FABIAN
on 2014-08-23 13:35:56 UTC
(
hide
)
Description:
0001-Pass-IBus.KEY_KP_Enter-to-the-application-if-the-pre.patch
Filename:
MIME Type:
Creator:
Mike FABIAN
Created:
2014-08-23 13:35:56 UTC
Size:
3.54 KB
patch
obsolete
>From 46dac2f2e0638f3ebb4926dccea99107b7af1aae Mon Sep 17 00:00:00 2001 >From: Mike FABIAN <mfabian@redhat.com> >Date: Sat, 23 Aug 2014 14:18:43 +0200 >Subject: [PATCH] Pass IBus.KEY_KP_Enter to the application if the preedit is > empty >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Resolves: rhbz#1128912 comment#30 >See: https://bugzilla.redhat.com/show_bug.cgi?id=1128912#c30 > >If IBus.KEY_KP_Enter is typed: > >⢠if the preëdit is empty, we should always pass the key to the > application. *Not* commit and empty string plus os.linesep because > that behaves differently in some cases. For example when typing a > message in Pidgin it would insert a linefeed into the message > instead of sending the message. > >⢠if the preëdit is not empty: > - when auto_select is true (typical for Russian input methods > like ârusleâ or âtranslitâ), the pending preëdit should be committed > and the IBus.KEY_KP_Enter key passed to the application. > For example, when typing âCâ with translit, the preëdit contains > Ц because it is still possible that a âhâ is typed next: > > C Ц 1000 > Ch Ч 1000 > CH Ч 1000 > > When IBus.KEY_KP_Enter is typed in this state, the Ц should > be committed and the IBus.KEY_KP_Enter should be passed to the > application. With the old code, typing âCâ followed by > IBus.KEY_KP_Enter inserted a Ц and a linefeed in Pidgin instead > of sending the message ending with Ц. > - when auto_select is false (typical for Chinese input methods), > the typed tabkeys should be committed (not the Chinese characters > in the preëdit) and IBus.KEY_KP_Enter should not be passed > to the application. >--- > engine/table.py | 21 +++++++++++++++++---- > 1 file changed, 17 insertions(+), 4 deletions(-) > >diff --git a/engine/table.py b/engine/table.py >index 228a543..10cf763 100644 >--- a/engine/table.py >+++ b/engine/table.py >@@ -1990,13 +1990,26 @@ class tabengine (IBus.Engine): > return True > > if key.code in (IBus.KEY_Return, IBus.KEY_KP_Enter): >+ if self._editor.is_empty() and not self._editor.get_preedit_string_complete(): >+ # When IBus.KEY_Return is typed, >+ # IBus.keyval_to_unicode(key.code) returns a non-empty >+ # string. But when IBus.KEY_KP_Enter is typed it >+ # returns an empty string. Therefore, when typing >+ # IBus.KEY_KP_Enter as leading input, the key is not >+ # handled by the section to handle leading invalid >+ # input but it ends up here. If it is leading input >+ # (i.e. the preëdit is empty) we should always pass >+ # IBus.KEY_KP_Enter to the application: >+ return False > if self._auto_select: > self._editor.commit_to_preedit() >- commit_string = self._editor.get_preedit_string_complete() + os.linesep >+ commit_string = self._editor.get_preedit_string_complete() >+ self.commit_string(commit_string) >+ return False > else: >- commit_string = self._editor.get_preedit_tabkeys_complete () >- self.commit_string(commit_string) >- return True >+ commit_string = self._editor.get_preedit_tabkeys_complete() >+ self.commit_string(commit_string) >+ return True > > if key.code in (IBus.KEY_Tab, IBus.KEY_KP_Tab) and self._auto_select: > # Used for example for the Russian transliteration method >-- >1.9.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1128912
:
925875
|
929759
|
929865
| 929877