[xwiki-users] Remapping Meta+G Shortcut
Is it possible to remap the Meta+G (Ctrl+G in Windows) to another key? Just switched from Firefox to Chrome and Chrome captures Ctrl+G for searching. Also noticed that the default Welcome page in XWiki 2.7 has minor layout problems when displayed in Chrome. The Xwiki.org Playground (version 2.6.2) appears to be OK. Anyone else seen this. e.g., the spaces column drops the text to the right of the icon onto the line below. -- View this message in context: http://xwiki.475771.n2.nabble.com/Remapping-Meta-G-Shortcut-tp6183603p618360... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 03/18/2011 08:06 AM, phancox wrote:
Is it possible to remap the Meta+G (Ctrl+G in Windows) to another key?
The key is configured as a translation string. You can either change it in your translation, or create a new wiki document where you post the new value and register that document as a document translation bundle in the administration. core.viewers.jump.shortcuts='Meta+G', 'Ctrl+G', 'Ctrl+/', 'Meta+/' core.viewers.jump.quickLinksText=Jump to any page in the wiki (Meta+G) Seems that Ctrl+/ is also bound in Chrome (at least in Linux), to Select All.
Just switched from Firefox to Chrome and Chrome captures Ctrl+G for searching.
Also noticed that the default Welcome page in XWiki 2.7 has minor layout problems when displayed in Chrome. The Xwiki.org Playground (version 2.6.2) appears to be OK. Anyone else seen this. e.g., the spaces column drops the text to the right of the icon onto the line below.
-- View this message in context: http://xwiki.475771.n2.nabble.com/Remapping-Meta-G-Shortcut-tp6183603p618360... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu-2 wrote:
On 03/18/2011 08:06 AM, phancox wrote: > Is it possible to remap the Meta+G (Ctrl+G in Windows) to another key?
The key is configured as a translation string. You can either change it in your translation, or create a new wiki document where you post the new value and register that document as a document translation bundle in the administration.
core.viewers.jump.shortcuts='Meta+G', 'Ctrl+G', 'Ctrl+/', 'Meta+/' core.viewers.jump.quickLinksText=Jump to any page in the wiki (Meta+G)
Seems that Ctrl+/ is also bound in Chrome (at least in Linux), to Select All.
> Just switched from Firefox to Chrome and Chrome captures Ctrl+G for > searching. > > Also noticed that the default Welcome page in XWiki 2.7 has minor layout > problems when displayed in Chrome. The Xwiki.org Playground (version 2.6.2) > appears to be OK. Anyone else seen this. e.g., the spaces column drops the > text to the right of the icon onto the line below. > > -- > View this message in context: http://xwiki.475771.n2.nabble.com/Remapping-Meta-G-Shortcut-tp6183603p618360... > Sent from the XWiki- Users mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users >
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Forgive my ignorance but I'm not sure where to find the document you mean when you say "change it in your translation". When you're referring to translation bundle, is this the same as for internationalisation? Thanks again for your assistance. -- View this message in context: http://xwiki.475771.n2.nabble.com/Remapping-Meta-G-Shortcut-tp6183603p619147... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 03/21/2011 10:44 AM, phancox wrote:
Sergiu Dumitriu-2 wrote:
On 03/18/2011 08:06 AM, phancox wrote: > Is it possible to remap the Meta+G (Ctrl+G in Windows) to another key?
The key is configured as a translation string. You can either change it in your translation, or create a new wiki document where you post the new value and register that document as a document translation bundle in the administration.
core.viewers.jump.shortcuts='Meta+G', 'Ctrl+G', 'Ctrl+/', 'Meta+/' core.viewers.jump.quickLinksText=Jump to any page in the wiki (Meta+G)
Seems that Ctrl+/ is also bound in Chrome (at least in Linux), to Select All.
> Just switched from Firefox to Chrome and Chrome captures Ctrl+G for > searching. > > Also noticed that the default Welcome page in XWiki 2.7 has minor layout > problems when displayed in Chrome. The Xwiki.org Playground (version 2.6.2) > appears to be OK. Anyone else seen this. e.g., the spaces column drops the > text to the right of the icon onto the line below. > > -- > View this message in context: http://xwiki.475771.n2.nabble.com/Remapping-Meta-G-Shortcut-tp6183603p618360... > Sent from the XWiki- Users mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users >
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Forgive my ignorance but I'm not sure where to find the document you mean when you say "change it in your translation".
You have to extract ApplicationResources.properties file(s) matching your language(s) from the xwiki-core jar, modify it and place it in WEB-INF/classes directory, so that it overwrites the one(s) from the xwiki-core jar. Finally, restart your wiki.
When you're referring to translation bundle, is this the same as for internationalisation?
Yes. Hope this helps, Marius
Thanks again for your assistance.
-- View this message in context: http://xwiki.475771.n2.nabble.com/Remapping-Meta-G-Shortcut-tp6183603p619147... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Marius Dumitru Florea wrote:
On 03/21/2011 10:44 AM, phancox wrote: > > Sergiu Dumitriu-2 wrote: >> >> On 03/18/2011 08:06 AM, phancox wrote: >> > Is it possible to remap the Meta+G (Ctrl+G in Windows) to another >> key? >> >> The key is configured as a translation string. You can either change it >> in your translation, or create a new wiki document where you post the >> new value and register that document as a document translation bundle in >> the administration. >> >> core.viewers.jump.shortcuts='Meta+G', 'Ctrl+G', 'Ctrl+/', 'Meta+/' >> core.viewers.jump.quickLinksText=Jump to any page in the wiki (Meta+G) >> >> Seems that Ctrl+/ is also bound in Chrome (at least in Linux), to Select >> All. >>
> Forgive my ignorance but I'm not sure where to find the document you mean > when you say "change it in your translation".
You have to extract ApplicationResources.properties file(s) matching your language(s) from the xwiki-core jar, modify it and place it in WEB-INF/classes directory, so that it overwrites the one(s) from the xwiki-core jar. Finally, restart your wiki.
> > When you're referring to translation bundle, is this the same as for > internationalisation?
Yes.
Hope this helps, Marius
> > Thanks again for your assistance. > > -- > View this message in context: http://xwiki.475771.n2.nabble.com/Remapping-Meta-G-Shortcut-tp6183603p619147... > Sent from the XWiki- Users mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Yes managed to get that all working fine. Remapped to use Ctrl+Z instead of Ctrl+G. Interestingly, after doing this, Firefox maps Ctrl+G to "find" (similar to Chrome). Appears as if both browsers have the same mappings but Chrome grabs the key first before passing to XWiki, whereas Firefox gives XWiki first crack at the key? Another ignorant question; what is the "Meta" key under Windows? The panel refers to "Meta+G" and "Ctrl+G" does what the "Meta+G" keys should do. But is there another key sequence, or does "Meta+G" under Windows just mean "Ctrl+G"? -- View this message in context: http://xwiki.475771.n2.nabble.com/Remapping-Meta-G-Shortcut-tp6183603p619188... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 03/21/2011 12:22 PM, phancox wrote:
Marius Dumitru Florea wrote:
On 03/21/2011 10:44 AM, phancox wrote: > > Sergiu Dumitriu-2 wrote: >> >> On 03/18/2011 08:06 AM, phancox wrote: >>> Is it possible to remap the Meta+G (Ctrl+G in Windows) to another >> key? >> >> The key is configured as a translation string. You can either change it >> in your translation, or create a new wiki document where you post the >> new value and register that document as a document translation bundle in >> the administration. >> >> core.viewers.jump.shortcuts='Meta+G', 'Ctrl+G', 'Ctrl+/', 'Meta+/' >> core.viewers.jump.quickLinksText=Jump to any page in the wiki (Meta+G) >> >> Seems that Ctrl+/ is also bound in Chrome (at least in Linux), to Select >> All. >>
> Forgive my ignorance but I'm not sure where to find the document you mean > when you say"change it in your translation".
You have to extract ApplicationResources.properties file(s) matching your language(s) from the xwiki-core jar, modify it and place it in WEB-INF/classes directory, so that it overwrites the one(s) from the xwiki-core jar. Finally, restart your wiki.
> > When you're referring to translation bundle, is this the same as for > internationalisation?
Yes.
Hope this helps, Marius
> > Thanks again for your assistance. > > -- > View this message in context: http://xwiki.475771.n2.nabble.com/Remapping-Meta-G-Shortcut-tp6183603p619147... > Sent from the XWiki- Users mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Yes managed to get that all working fine. Remapped to use Ctrl+Z instead of Ctrl+G. Interestingly, after doing this, Firefox maps Ctrl+G to "find" (similar to Chrome). Appears as if both browsers have the same mappings but Chrome grabs the key first before passing to XWiki, whereas Firefox gives XWiki first crack at the key?
Yes, Ctrl+G is "find next". Even with the Ctrl+G mapping in XWiki, if the windows doesn't have the proper focus (try clicking on the address bar), Ctrl+G will show the find dialog.
Another ignorant question; what is the "Meta" key under Windows? The panel refers to "Meta+G" and "Ctrl+G" does what the "Meta+G" keys should do. But is there another key sequence, or does "Meta+G" under Windows just mean "Ctrl+G"?
Meta = the "Windows" key, the one with the win logo on it, usually between Ctrl and Alt. It's bad to call it the "Windows key" in a multi-OS environment, where it maps to the Apple key on macs, and it's wrong to say "Windows" to GNU/Linux users. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu-2 wrote:
On 03/21/2011 12:22 PM, phancox wrote: Meta = the "Windows" key, the one with the win logo on it, usually between Ctrl and Alt. It's bad to call it the "Windows key" in a multi-OS environment, where it maps to the Apple key on macs, and it's wrong to say "Windows" to GNU/Linux users.
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
I thought that's what it might have been but pressing the "Windows" key with "G" takes me to the Windows gadgets. And "Windows" key with the newly mapped "Z" doesn't appear to do anything. In short, "Windows" as a "Meta" key doesn't appear to work for me at all. Not a problem, happy to use "Ctrl"; just curious as to how "Windows" is supposed to work as a "Meta" key. -- View this message in context: http://xwiki.475771.n2.nabble.com/Remapping-Meta-G-Shortcut-tp6183603p619192... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 03/21/2011 12:39 PM, phancox wrote:
Sergiu Dumitriu-2 wrote:
On 03/21/2011 12:22 PM, phancox wrote: Meta = the"Windows" key, the one with the win logo on it, usually between Ctrl and Alt. It's bad to call it the"Windows key" in a multi-OS environment, where it maps to the Apple key on macs, and it's wrong to say"Windows" to GNU/Linux users.
I thought that's what it might have been but pressing the "Windows" key with "G" takes me to the Windows gadgets. And "Windows" key with the newly mapped "Z" doesn't appear to do anything. In short, "Windows" as a "Meta" key doesn't appear to work for me at all.
Win7? It used to work well in XP.
Not a problem, happy to use "Ctrl"; just curious as to how "Windows" is supposed to work as a "Meta" key.
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu-2 wrote:
On 03/21/2011 12:39 PM, phancox wrote: > > Sergiu Dumitriu-2 wrote: >> >> On 03/21/2011 12:22 PM, phancox wrote: >> Meta = the"Windows" key, the one with the win logo on it, >> usually >> between Ctrl and Alt. It's bad to call it the"Windows key" in a >> multi-OS environment, where it maps to the Apple key on macs, and it's >> wrong to say"Windows" to GNU/Linux users. >> > I thought that's what it might have been but pressing the "Windows" key with > "G" takes me to the Windows gadgets. And "Windows" key with the newly > mapped "Z" doesn't appear to do anything. In short, "Windows" as a "Meta" > key doesn't appear to work for me at all.
Win7? It used to work well in XP.
> Not a problem, happy to use "Ctrl"; just curious as to how "Windows" is > supposed to work as a "Meta" key.
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Yes, Windows 7 Ultimate 64-bit Tried it on one of my test machines that is running XP using Internet Explorer and it didn't work there either. Access was via remote desktop (test machine is a VM) but I wouldn't have expected that to make a difference. -- View this message in context: http://xwiki.475771.n2.nabble.com/Remapping-Meta-G-Shortcut-tp6183603p619196... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Marius Dumitru Florea -
phancox -
Sergiu Dumitriu