Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Accesskey doesn't work on MAC OS X #594

Closed
khushboovashi opened this issue Jul 24, 2017 · 18 comments
Closed

HTML Accesskey doesn't work on MAC OS X #594

khushboovashi opened this issue Jul 24, 2017 · 18 comments

Comments

@khushboovashi
Copy link

Hi,

We have used your webkit in our project. I am facing the issue related to HTML access-keys.
On MAC OS X, the access keys don't work; I tried to dig into it and found out that the events are not getting generated. For, example if I have used access-keys f to open the file menu then while I press (Alt + F), it should generate the mouse event which is not happening.

Can you please help me to figure this out.

Thanks,
Khushboo

@annulen
Copy link
Member

annulen commented Jul 24, 2017

Did it work with older QtWebKit versions, e.g. one coming with Qt 5.5?

@khushboovashi
Copy link
Author

MAC OS X - Doesn't work with official webkit 5.5 or newer version, not with Annulen 5.8 and also with webengine it doesn't work.
Linux - Works with everything
Windows: Works with Annulen 5.9 webkit

So, we have only issue on MAC OS X.

@annulen
Copy link
Member

annulen commented Jul 24, 2017

Is there any old report on this topic in bugreports.qt.io? I need to get as much details as possible, as I still don't realise what's all this about

@neel5481
Copy link

Issue was reported in 2009 as per below link but don't know it is integrated in Webkit source or not.
https://bugs.webkit.org/show_bug.cgi?id=32213

@annulen
Copy link
Member

annulen commented Jul 30, 2017

Does Ctrl-Alt-F work?

@khushboovashi
Copy link
Author

No. We have tried different key variations but didn't work.

@annulen
Copy link
Member

annulen commented Jul 31, 2017

I've tried test case https://github.com/annulen/webkit/blob/qtwebkit-stable/LayoutTests/fast/forms/access-key.html on Linux, works fine here.

Please try Command+Alt combination

@khushboovashi
Copy link
Author

khushboovashi commented Jul 31, 2017 via email

@annulen
Copy link
Member

annulen commented Jul 31, 2017

Doesn't Command+Alt work?

If you can rebuild from sources I can give you a patch to try

@khushboovashi
Copy link
Author

khushboovashi commented Aug 1, 2017 via email

@annulen
Copy link
Member

annulen commented Aug 1, 2017

Can you please provide the steps/documentation link to do this ?

https://github.com/annulen/webkit/wiki/Building-QtWebKit-on-OS-X

I would like to clarify that, if this issue would be fixed with this patch, then you will commit this patch to the repository.

Sure

Here is the patch:

diff --git a/Source/WebCore/page/qt/EventHandlerQt.cpp b/Source/WebCore/page/qt/EventHandlerQt.cpp
index 240ea75eb74..334ebbf6a3a 100644
--- a/Source/WebCore/page/qt/EventHandlerQt.cpp
+++ b/Source/WebCore/page/qt/EventHandlerQt.cpp
@@ -123,7 +123,7 @@ bool EventHandler::passMouseReleaseEventToSubframe(MouseEventWithHitTestResults&
 unsigned EventHandler::accessKeyModifiers()
 {
 #if OS(DARWIN)
-    return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
+    return PlatformEvent::AltKey;
 #else
     return PlatformEvent::AltKey;
 #endif

@annulen
Copy link
Member

annulen commented Aug 1, 2017

With patch Alt+F is expected to be working

@khushboovashi
Copy link
Author

khushboovashi commented Aug 1, 2017 via email

@khushboovashi
Copy link
Author

khushboovashi commented Aug 1, 2017 via email

@khushboovashi
Copy link
Author

khushboovashi commented Aug 2, 2017 via email

@sl1pkn07
Copy link

sl1pkn07 commented Nov 11, 2017

@khushboovashi how your resolve the rpath issue? with CMAKE_MACOSX_RPATH=OFF?

i have the same issue with (qt)webkit builded throught Brew

vitallium added a commit that referenced this issue Nov 30, 2017
macOS has following problems to handle access keys:
QKeyEvent::text() returns an empty string when one of the following modifiers is on: ctrl key or meta key. QTBUG-64891
On macOS, the ControlModifier value corresponds to the Command keys on the keyboard, and the MetaModifier value corresponds to the Control keys.

Issue: #594
vitallium added a commit that referenced this issue Dec 1, 2017
macOS has following problems to handle access keys:
QKeyEvent::text() returns an empty string when one of the following modifiers is on: ctrl key or meta key. QTBUG-64891
On macOS, the ControlModifier value corresponds to the Command keys on the keyboard, and the MetaModifier value corresponds to the Control keys.

Issue: #594
vitallium added a commit that referenced this issue Dec 1, 2017
macOS has following problems to handle access keys:
QKeyEvent::text() returns an empty string when one of the following modifiers is on: ctrl key or meta key. QTBUG-64891
On macOS, the ControlModifier value corresponds to the Command keys on the keyboard, and the MetaModifier value corresponds to the Control keys.

Issue: #594
vitallium added a commit that referenced this issue Dec 1, 2017
macOS has following problems to handle access keys:
QKeyEvent::text() returns an empty string when one of the following modifiers is on: ctrl key or meta key. QTBUG-64891
On macOS, the ControlModifier value corresponds to the Command keys on the keyboard, and the MetaModifier value corresponds to the Control keys.

Issue: #594
vitallium added a commit that referenced this issue Dec 1, 2017
macOS has following problems to handle access keys:
QKeyEvent::text() returns an empty string when one of the following modifiers is on: ctrl key or meta key. QTBUG-64891
On macOS, the ControlModifier value corresponds to the Command keys on the keyboard, and the MetaModifier value corresponds to the Control keys.

Issue: #594
vitallium added a commit that referenced this issue Dec 2, 2017
macOS has following problems to handle access keys:
QKeyEvent::text() returns an empty string when one of the following modifiers is on: ctrl key or meta key. QTBUG-64891
On macOS, the ControlModifier value corresponds to the Command keys on the keyboard, and the MetaModifier value corresponds to the Control keys.

Issue: #594
annulen pushed a commit that referenced this issue Dec 6, 2017
macOS has following problems to handle access keys:
QKeyEvent::text() returns an empty string when one of the following modifiers is on: ctrl key or meta key. QTBUG-64891
On macOS, the ControlModifier value corresponds to the Command keys on the keyboard, and the MetaModifier value corresponds to the Control keys.

Issue: #594
annulen pushed a commit that referenced this issue Dec 6, 2017
macOS has following problems to handle access keys:
QKeyEvent::text() returns an empty string when one of the following modifiers is on: ctrl key or meta key. QTBUG-64891
On macOS, the ControlModifier value corresponds to the Command keys on the keyboard, and the MetaModifier value corresponds to the Control keys.

Issue: #594
vitallium added a commit that referenced this issue Dec 13, 2017
macOS has following problems to handle access keys:
QKeyEvent::text() returns an empty string when one of the following modifiers is on: ctrl key or meta key. QTBUG-64891
On macOS, the ControlModifier value corresponds to the Command keys on the keyboard, and the MetaModifier value corresponds to the Control keys.

Issue: #594
vitallium added a commit that referenced this issue Dec 13, 2017
macOS has following problems to handle access keys:
QKeyEvent::text() returns an empty string when one of the following modifiers is on: ctrl key or meta key. QTBUG-64891
On macOS, the ControlModifier value corresponds to the Command keys on the keyboard, and the MetaModifier value corresponds to the Control keys.

Issue: #594
vitallium added a commit that referenced this issue Dec 15, 2017
macOS has following problems to handle access keys:
QKeyEvent::text() returns an empty string when one of the following modifiers is on: ctrl key or meta key. QTBUG-64891
On macOS, the ControlModifier value corresponds to the Command keys on the keyboard, and the MetaModifier value corresponds to the Control keys.

Issue: #594
annulen pushed a commit that referenced this issue Dec 22, 2017
macOS has following problems to handle access keys:
QKeyEvent::text() returns an empty string when one of the following modifiers is on: ctrl key or meta key. QTBUG-64891
On macOS, the ControlModifier value corresponds to the Command keys on the keyboard, and the MetaModifier value corresponds to the Control keys.

Issue: #594
@annulen
Copy link
Member

annulen commented Dec 22, 2017

Fixed in abbe383 and b519900

@annulen annulen closed this as completed Dec 22, 2017
@annulen annulen added this to the v5.212.0-alpha3 milestone Dec 22, 2017
@khushboovashi
Copy link
Author

Thanks for working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants