언어 설정

Menu
Sites
Language
Very strange bug with Tizen::Web::Controls::Web! And BUG with BUTTON VOLUME CONTROL!!!

Hi all,

Tizen version 2.2.0.

Very strange bug with "Tizen::Web::Controls::Web":

After scrolling in "Tizen::Web::Controls::Web" buttons do not work on the device!!! Not work OnKeyPressed and OnKeyReleased!

Help solve the problem.

Edited by: Sergei Melikhov on 25 11월, 2013

Responses

8 댓글
Alex Dem

Hi.
Api should works on 2.2.0. Please check your code :
Possibly in WebView you have added KeyEvent listener for parent Form __pMainForm->AddKeyEventListener(*this); but not for child control Tizen::Web::Controls::Web.
When you perform scrolling (or any another action) parent Form lose focus,
hence hw keys pressing is not processed for child conrol (Tizen::Web::Controls::Web).

try to add listeners for both controls:
 __pWeb->AddKeyEventListener(*this);
 __pMainForm->AddKeyEventListener(*this);

Alexey.

Sergei Melikhov

Hi

No. It does not work. Buttons do not work.

 

But I found no logical solution. I'm on every frame in MainForm call SetFocus (). This nonsense works.

Alex Dem

On Tizen 2.2.1 Hw keys 'menu' & 'back' works fine (checked on emulator) if focus is on Web control.
Alexey,

Alex Ashirov

I checked this on device and didn't observe any issues as well. Some more details regarding exact scenario are needed.

Sergei Melikhov

"if focus is on Web control" - This is normal behavior of device buttons? :) Why do BUTTONS dependence on focus on what component?

The same problem with the volume buttons? Why can not I get them from the volume value? Why can not I pass the level from my program total volume of the device? Why volume of the device is measured in units of 16, while the rest of the volume of 100 units? Why can not I control the overall volume of the device?Why does not this code:

void OnKeyPressed ( const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode )
{
    if( keyCode == Tizen::Ui::KEY_SIDE_UP || keyCode == Tizen::Ui::KEY_VOLUME_UP )
    {
        // Up button is pressed
         m_playerVolume = m_playerVolume <= 90 ? m_playerVolume + 5 : m_playerVolume;
    }
    else if( keyCode == Tizen::Ui::KEY_SIDE_DOWN || keyCode == Tizen::Ui::KEY_VOLUME_DOWN )
    {
        // Down button is pressed
        m_playerVolume = m_playerVolume >= 5 ? m_playerVolume - 5 : m_playerVolume;
    }
}

If you know the answer, then send a demo program where you work all the buttons, including volume control works.

Alex Ashirov

Hi Sergei,

I have tried to scroll in the in Tizen::Web::Controls::Web but I have not observed any issues.

Could you please provide some more details on how to reproduce the bug?

Sergei Melikhov

Create 2 panel. On one of them place web control. Open url page stored on the device itself. On another panel also place something that had to use button Back. On the web control scroll text. And - for the other panel buttons do not work. Bullshit!

kimi

HI,

Tried with 2.2.1, it works properly.

Kimi