Closed
Bug 172203
Opened 22 years ago
Closed 20 years ago
Use GTK2 setting to determine if textfields should be selected when tabbed to
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: aaronlev, Assigned: blizzard)
References
Details
(Keywords: helpwanted)
Attachments
(2 files)
1.31 KB,
patch
|
blizzard
:
review+
bryner
:
superreview+
|
Details | Diff | Splinter Review |
1.63 KB,
patch
|
Details | Diff | Splinter Review |
In bug 28583, we are implementing select text field contents on keyboard focus.
GTK2 has an OS-wide setting that should be exposed through
widget/src/gtk2/nsLookAndFeel.cpp
at case eMetric_SelectTextfieldsOnKeyFocus:
Akkana, on IRC you mentioned something about ~/.gtkrc-2.0
gtk-entry-select-on-focus = 0
Assignee | ||
Comment 1•22 years ago
|
||
I need to figure out how to get that setting - I don't think it's that hard to
figure out.
Comment 2•22 years ago
|
||
It's a gtksetting, just use
settings = gtk_settings_get_default ();
gboolean bool;
g_object_get (settings, "settings_name", &boolean, NULL);
You can also monitor any changes to the setting by connecting to the
"notify::settings_name" signal of the GtkSettings object.
Assignee | ||
Comment 3•22 years ago
|
||
Great, thanks.
Comment 5•22 years ago
|
||
I can make a patch for this if you want blizzard...
Assignee | ||
Comment 6•22 years ago
|
||
Sure, go right ahead!
Assignee | ||
Comment 7•22 years ago
|
||
Assignee: akkana → blizzard
Comment 8•22 years ago
|
||
This patch seems to work for me, although text in the bookmark name entry will
always be selected. That seems to be an issue with the bookmark dialog.
Comment 9•20 years ago
|
||
Comment on attachment 104133 [details] [diff] [review]
Patch
From 2002 and it hasn't bitrot a bit! Let's get this one checked in.
Attachment #104133 -
Flags: superreview?(blizzard)
Attachment #104133 -
Flags: review?(pavlov)
Assignee | ||
Updated•20 years ago
|
Attachment #104133 -
Flags: superreview?(blizzard) → superreview?(bryner)
Updated•20 years ago
|
Attachment #104133 -
Flags: review?(pavlov) → review?(blizzard)
Assignee | ||
Updated•20 years ago
|
Attachment #104133 -
Flags: review?(blizzard) → review+
Comment 10•20 years ago
|
||
Comment on attachment 104133 [details] [diff] [review]
Patch
Hm, is all the ref/sink/unref stuff really needed? Blizzard would know better
than me. One nit: space after "if".
Attachment #104133 -
Flags: superreview?(bryner) → superreview+
Assignee | ||
Comment 11•20 years ago
|
||
I would expect that stuff to be required, yeah.
Comment 12•20 years ago
|
||
the patch has been r/sr'd --but I'm not sure how much of it has bit-rotted.
nominating for the 1.8a5 train, in case it's can easily be cleaned up (if
needed) and checked in.
Flags: blocking1.8a5?
Updated•20 years ago
|
Flags: blocking1.8a6?
Comment 14•20 years ago
|
||
this would be nice to have but it's not a blocker.
Flags: blocking1.8a6? → blocking1.8a6-
Updated•20 years ago
|
Keywords: helpwanted
Updated•20 years ago
|
Flags: blocking1.8b?
Comment 15•20 years ago
|
||
The patch is quite old, so I redo a patch without any change.
It works well.
Shall we commit it?
Reporter | ||
Comment 16•20 years ago
|
||
Looking at the patch I don't see any reason why we shouldn't commit it still.
Not a blocker, but please do check in once the tree opens for 1.8b2.
Flags: blocking1.8b? → blocking1.8b-
Comment 18•20 years ago
|
||
Checking in nsLookAndFeel.cpp;
/cvsroot/mozilla/widget/src/gtk2/nsLookAndFeel.cpp,v <-- nsLookAndFeel.cpp
new revision: 1.22; previous revision: 1.21
done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: Keyboard: Navigation → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•