Bug 66772

Summary: EDITING: LibO not allows input methods and IME to use some "Ctrl+XXX" hotkeys
Product: LibreOffice Reporter: minhsien0330 <minhsien0330>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: barta
Version: 3.3 all versions   
Hardware: Other   
OS: All   
Whiteboard: BSA
i915 platform: i915 features:

Description minhsien0330 2013-07-10 13:09:19 UTC
Problem description: 
For chinese users, we use some chinese input methods type chinese characters , for example gcin on Linux or some IME programs on Microsoft Windows.

Input method programs usually provide some hotkeys to output some common chinese symbols, eg: pressing "Ctrl+," will send a character "," to Writer. Here is other examples:
"Ctrl+." will send a "。"
"Ctrl+/" will send a "?"
"Ctrl+[" will send a "「"
"Ctrl+]" will send a "」"

We can do this under MS office on Windows and other gtk applications (eg: leafpad) on Linux. 

But Libreoffice (both Linux and Windows version) still not allow input method programs or IME from to catch the "Ctrl+," or some "Ctrl+XXX" keys , so user cannot use these hotkeys to output some common symbols, it's so inconvenient.

Steps to reproduce:
1. Open Writer
2. Using gcin or Microsoft New Phonetic IME (switch to chinese typing mode)
3. Press "Ctrl+,", nothing happen

Current behavior:
Nothing happen after pressing "Ctrl+,".

Expected behavior:
Libreoffice let gcin or Microsoft New Phonetic IME catch the "Ctrl+," and output a "," to Writer.

Thank you.
Operating System: All
Version: 3.3 all versions
Comment 1 tommy27 2013-07-15 11:47:43 UTC
Confirming issue. 
the combination "Ctrl+," is not offered.

the same applies to "Alt+," and combined variants such as "Ctrl+Alt+," and "Ctrl+Shift+," etc. etc.

LibO hotkey customizer actually allows a lot of combinations like:
 
"Ctrl+0"  --> "Ctrl+9" 
"Ctrl+A"  --> "Ctrl+Z" 
"Ctrl+F1"  --> "Ctrl+F16" 
"Ctrl+." 
"Ctrl+;" 
"Ctrl+/" 
"Ctrl+[" 
"Ctrl+]"
"Ctrl++"
"Ctrl+*"
"Ctrl+Home"
"Ctrl+End"
"Ctrl+Enter"
"Ctrl+Space"
"Ctrl+ArrowUp", "Ctrl+ArrowDown", "Ctrl+ArrowLeft", "Ctrl+ArrowRight"
"Ctrl+PageUp", "Ctrl+PageDown"
Comment 2 minhsien0330 2013-07-15 12:16:53 UTC
Dear  tommy27:
Thanks for your confirming.
Additionally,  I'm sure that I did not setup "Ctrl+." to do anything in Libreoffice, but Libreoffice still not allow any chinese input method or other IMEs on Windows to use this hotkey.
I think the expected behavior should be "if Libreoffice do not use this hotkey, allow other input method or IMEs use it".
Thank you.
Comment 3 tommy27 2013-07-15 13:20:42 UTC
ok. as a workaround you can create custom macros to fit your desired chinese characters.

modify the following code to meet your needs:

Function insertSpecialChar(sChar)

'sChar is the char to be inserted
dim oDocument as object
dim oText as object
dim oVCursor, oCursor as object
oDocument=thiscomponent
oText = oDocument.Text
' after this, an obscure call gets the current cursor position
oVCursor = oDocument.currentcontroller.getViewCursor()
' now try either
oText.insertString(oVCursor.getStart(),sChar,false)
End Function
' --------------------------------------------------------------------------
Sub InsertBeta
' this is an example for the use of InsertSpecialChar
' all you do is to copy this, with a different name (like Insertaring)
' and then cut-and-paste the char you want to insert instead of theBeta 
' between the double quotes after "insertSpecialChar" in the next line
InsertSpecialChar("ß")
End Sub
' --------------------------------------------------------------------------
Sub InsertMM2
InsertSpecialChar("²")
End Sub
' --------------------------------------------------------------------------
Sub InsertMM3
InsertSpecialChar("³")
End Sub



as said before you can assign each one of these macros to a certain "Ctrl+something" combination, apart from "Ctrl+," which is not available



you can already
Comment 4 minhsien0330 2013-07-16 07:49:51 UTC
Dear tommy27:
Thanks for your advice, now we get another workaround before this problem be fixed. :)
Comment 5 tommy27 2014-10-17 04:52:07 UTC
@minhsien0330
could you please give an update of the bug status with current LibO 4.3.2.2?
thanks.
Comment 6 minhsien0330 2014-10-19 13:08:40 UTC
tommy27:
I tried 4.3.4.0 (2013-10-15) and 4.3.2.1, and this bug is still there.
I'll try 4.3.2.2  after I download it.
Thank you~
Comment 7 minhsien0330 2014-10-19 13:11:40 UTC
Sorry, the version of 4.3.4.0 is 2014-10-15, but not 2013-10-15.
Comment 8 minhsien0330 2014-10-21 00:15:44 UTC
@tommy27:
LibO 4.3.2.2 still has this bug. Thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.