Bug 332295 - Editor should change keyboard layout automatically
Summary: Editor should change keyboard layout automatically
Status: RESOLVED WORKSFORME
Alias: None
Product: kwordquiz
Classification: Applications
Component: general (show other bugs)
Version: 0.9.2
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Peter Hedlund
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-19 00:31 UTC by Ilpo Kantonen
Modified: 2023-02-09 03:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
header (313 bytes, application/octet-stream)
2014-03-20 22:28 UTC, Peter Hedlund
Details
implementation (1.92 KB, text/x-c++src)
2014-03-20 22:29 UTC, Peter Hedlund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilpo Kantonen 2014-03-19 00:31:41 UTC
If I have two languages in editor like finnish and russian language (cyrillic), they have different keyboard layouts. I have a tool to change layout in toolbar on desktop. But it takes time to change layout while writing words to editor in different columns. And then you have to change it back when you write another language. Every word pair.

I want KWordQuiz to change automatically keyboard layout in different editor columns if the languages uses different keyboard layout! Naturally this works with other language pairs with different keyboard layouts.

Reproducible: Always
Comment 1 Christoph Feck 2014-03-20 22:16:42 UTC
Andriy, can applications force a layout switch, e.g. via D-Bus, or via X11 API?
Comment 2 Peter Hedlund 2014-03-20 22:28:32 UTC
Created attachment 85655 [details]
header
Comment 3 Peter Hedlund 2014-03-20 22:29:02 UTC
Created attachment 85656 [details]
implementation
Comment 4 Peter Hedlund 2014-03-20 22:30:38 UTC
(In reply to comment #1)
> Andriy, can applications force a layout switch, e.g. via D-Bus, or via X11
> API?

It can be done through X11. I have attached an implementation I started on a long time ago, but never finished. Feel free to work on it if interested.
Comment 5 Andriy Rysin 2014-03-20 22:54:03 UTC
It can be done either via xkb:
XkbLockGroup(QX11Info::display(), XkbUseCoreKbd, group)
or via dbus if kde keyboard daemon is running, e.g.
qdbus org.kde.keyboard /Layouts org.kde.KeyboardLayouts.setLayout us
Comment 6 Ilpo Kantonen 2014-03-22 17:45:52 UTC
Another find: In the .kvtml file there are

<identifier id="0">
      <name>Venaja</name>
      <locale>en</locale>
</identifier>
<identifier id="1">
      <name>Suomi</name>
      <locale>en</locale>
</identifier>

Both of locales are en. They should be ru and fi ?
Comment 7 Andrew Crouthamel 2018-11-11 04:34:57 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Andrew Crouthamel 2018-11-21 04:36:08 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Justin Zobel 2023-01-10 01:52:28 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 10 Bug Janitor Service 2023-01-25 05:06:07 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2023-02-09 03:54:14 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!