Bug 30273 - [Key Bindings] DBCS: "F1" funtion key does NOT work on Linux_GTK.
Summary: [Key Bindings] DBCS: "F1" funtion key does NOT work on Linux_GTK.
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: Other Linux-GTK
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-27 06:00 EST by SC Development 01 CLA
Modified: 2003-09-19 16:36 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SC Development 01 CLA 2003-01-27 06:00:03 EST
Reporter: Amanda Lee

Language: Korean /Simplfied Chinese /Traditional Chinese
        
Build driver: M4_Linux_GTK
    
Severity: 	  

OS: RedHat8

JDK Ver.: IBM JDK1.3.1 + SR3
               
Test case #: 11.1
 
Summary: DBCS: "F1" funtion key does NOT work on Linux_GTK.

Description:

Steps to recreate problem:
1-Open a eclipse.
2-Press "F1" function key.
==> [Error] Nothing responded to.

3-Press "SHIFT+F1".
==> [Error] The pop-up resources tab and eclipse session are blinking, then 
no 'help' displayed.


<<Expected Result>>
The key bindings works correctly.
Comment 1 Dorian Birsan CLA 2003-01-27 08:51:43 EST
Moving this to the UI component, as this is a key binding issue.
Comment 2 SC Development 01 CLA 2003-02-12 04:23:23 EST
F1 and Shift+F1 work on Motif with M5 build but still don't work on GTK with M5 
build.
Comment 3 Andrew Irvine CLA 2003-02-12 17:06:18 EST
See bug 31329 for more information about f1/ctrl-f1 help and GTK.
Comment 4 SC Development 01 CLA 2003-02-12 21:32:54 EST
Ctrl+F1 works on RedHat8.0 GTK2.0.6 (and also GTK+2.2) GNOME platforms.
Comment 5 Masayuki Fuse CLA 2003-03-05 21:16:15 EST
I've reviewed this. We must use Ctrl+F1 on GTK to avoid confliction. This 
should be documented.
Comment 6 Douglas Pollock CLA 2003-09-12 16:07:37 EDT
I can't reproduce this problem on Eclipse-GTK I20030910 using Simplified 
Chinese.  'F1' and 'Ctrl+F1' open the infopop help.

'Shift+F1' shouldn't display help.  Running an application like GEdit, for 
example, only displays help on 'F1' and 'Ctrl+F1'.  However, Eclipse does 
display help, after a very weird flicker (you have to see it to believe it).  
This is arguably a bug with SWT.  I'm moving this to SWT for comment.
Comment 7 Steve Northover CLA 2003-09-16 09:55:09 EDT
FH knows the complete story behind F1 and Ctrl+F1.  Perhaps this is a dup and 
the explanation is alreay in another PR?  FH to resolve this.
Comment 8 Felipe Heidrich CLA 2003-09-18 18:07:37 EDT
In GTK:
Ctrl+F1 is the GTK_WIDGET_HELP_TOOLTIP help.
Shift+F1 is the GTK_WIDGET_HELP_WHATS_THIS help.
F1 is usually used as MenuItem accelerator, it brings up the Application Help. 

Due a bug in GTK (http://bugzilla.gnome.org/show_bug.cgi?id=100439) pressing F1
is the same as pressing Ctrl+F1.

My options here are:
1) Don't do anything, I've verified that new version of GTK (2.2.4) which
contaim the fix for GTK bug100439 does not have the problem.
2) Only issue SWT.HELP when the help type in show_help signal is equals to
GTK_WIDGET_HELP_TOOLTIP, currently SWT fires SWT.HELP for each gtk  show_help
signal.
3) Stop using the show_help signal and start locking for Ctrl+F1 (or any key we
want, like F1) to issue the SWT Help events. Try to fix bug 20841 with this as well.



Comment 9 Douglas Pollock CLA 2003-09-19 10:21:55 EDT
Note there have been requests to make the help key remappable, both in Bug 20841
and Bug 26772.  Note also that, if the help event could be triggered by the new
platform-ui key binding architecture, we would avoid possible duplicate bindings
(binding help and something else to the same key).  This would also provide
context-awareness -- perhaps providing an easy solution to Bug 26772.

However, from the perspective of SWT as a standalone graphics library, it would
probably be best to have some default behaviour.  Perhaps providing global key
filters before help processing?  Is that even possible?

Also, one of the key points I wanted investigated is the flicker effect when
pressing "Shift+F1".  Stop by my desk if you want to see a demonstation.
Comment 10 Felipe Heidrich CLA 2003-09-19 16:36:00 EDT
Fixed HEAD > 20030909
Crazy thing when Shift+F1 is fixed by SWT code.
Ctrl+F1 / F1 problem was used by GTK code.