Closed Bug 555019 Opened 14 years ago Closed 14 years ago

Need implementation of VKB state (open/closed) for GetIMEEnabled method

Categories

(Core Graveyard :: Widget: Qt, defect)

Other
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: romaxa, Assigned: mjarvin)

References

Details

(Keywords: inputmethod)

Attachments

(1 file)

nsWindow::GetIMEEnabled is not implemented crrectly for Qt, because we don't have right API.

We need to solve this problem.
Keywords: inputmethod
this is basically a plattform issue for meego / maemo, there is no "general" ime for qt we could refer to.
Blocks: 583150
Added patch, which checks whether input method is visible on screen. This can be only checked when MOZ_ENABLE_MEEGOTOUCH is used, because Qt doesn't have API for this.
Assignee: nobody → mjarvin
Status: NEW → ASSIGNED
Attachment #466702 - Flags: review?(romaxa)
Comment on attachment 466702 [details] [diff] [review]
Patch which checks area consumed by vkb on meegotouch build


>+#ifdef MOZ_ENABLE_MEEGOTOUCH
- >+    MInputMethodState *inputState = MInputMethodState::instance();
should be
+ >+    MInputMethodState* inputState = MInputMethodState::instance();
                           
                       
- >+        const QRect &vkbArea = inputState->inputMethodArea();
should be
+ >+        const QRect& vkbArea = inputState->inputMethodArea();

>+        return vkbArea.height() > 5;
here should be !vkbArea.isEmpty(), "> 5" looks like hack
>+    }
Attachment #466702 - Flags: review?(romaxa) → review-
I just realize that this is wrong. Its not about the size of the VKB we are talking here. Its about if IME is active or not - which is also true in cases when the VKB is hidden and a Hardware Keyboard is active (just think about real external keyboards with BT).

There is no api to ask if IME is active actually, so lets keep it as it is - with the flag and maybe request an api for this from meego input method framework.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: