keyconfig 20110522Apparent bug in keyconfig:
https://bugzilla.mozilla.org/show_bug.cgi?id=332271 (Also, for me, choosing "keyconfig options" from the extensions manager brings up a blank box whereas keyconfig options" from the tools menu populates it. Does anyone else get this?) Hi guys,
I've been trying to create a new shortcut "Shift+Backspase" to do the same as "Ctrl+W" to close tabs. I have (Back is Close) extension, of course I'm addicted to it now. Sometime I find myself trying it in IE ![]() Thanks. It worked, thank you Zoolcar9. How can I prevent it from closing the whole window though? Sometimes one can click a few extra times by mistake.
Another question, please. You know how when you type something in the address bar, you click "Ctrl+Enter" to add (www. & .com) to it. And when you click "Shift+Enter" it adds (www. & .net) to it. How can I make "Shift+Enter" add (www. & .ca) To the entry? I need it more for our Canadian websites than (.net). Thank you.
Add <a href="data:text/javascript,window.__preUC_handleURLBarCommand%20%3D%20window.handleURLBarCommand%3B%0Awindow.handleURLBarCommand%20%3D%20function(aTriggeringEvent)%0A%7B%0A%09const%20SHIFT_ENTER_URL%20%3D%20%22http%3A%2F%2Fwww.%25s.net%2F%22%3B%0A%09%0A%09if%20(!gURLBar)%0A%09%7B%0A%09%09return%3B%0A%09%7D%0A%09%0A%09if%20(aTriggeringEvent%20%26%26%20aTriggeringEvent.shiftKey%20%26%26%20!aTriggeringEvent.ctrlKey)%0A%09%7B%0A%09%09if%20(!%2F%5E(%5Cw%2B%3A%7Cwww%5C.)%7C%5C%2F%5Cs*%24%2Fi.test(gURLBar.value))%0A%09%09%7B%0A%09%09%09gURLBar.value%20%3D%20SHIFT_ENTER_URL.replace(%22%25s%22%2C%20gURLBar.value.replace(%2F%5E%5Cs%2B%7C%5Cs%2B%24%2Fg%2C%20%22%22).replace(%2F%20%2Fg%2C%20%22%2520%22))%3B%0A%09%09%7D%0A%09%7D%0A%09%0A%09window.__preUC_handleURLBarCommand(aTriggeringEvent)%3B%0A%7D%3B%0A">these lines</a> to your userChrome.js and replace "http://www.%s.net/" with "http://www.%s.ca/" (or whatever you prefer). Not a bug, described there. In the official version the keyconfig screen cannot be reached from the Extension Manager as this screen is a tool for editing the application and not a tool for editing the keyconfig prefs. gBrowser.removeCurrentTab();
Thanks dorando, I thought it was a problem in the core Fx key handler (hence bugzilla)... Anyhow I've moved its status there from "invalid" to "open" again, in view of your response, hope thats right ![]() what's the code to toggle the find bar?
to clarify: 1. if find bar is hidden, open it and focus the text box. 2. else if find bar is already open, hide it. by default, ctrl+f already does the first half. thanks in advance.
Last edited by Zoolcar9 on June 4th, 2006, 11:20 am, edited 4 times in total.
thanks, Zoolcar9.
![]() the funny thing is, when you type (for example) "h" into the find bar and then hide the find bar and then you do "find next", it still finds "h". this is not a bug in your code. it also applies to the "close find bar" button. findbar could use a good code review.. and it would be nice to have searchwp type terms buttons, add words to search instead of just replace, maybe a wordcount, esp nice would be word 3 of 10 is focused on the page.
i've done some customization on it, and in fact test findbar close button press and clear buffers like this and dehighlight. thanks to userchrome.js these things are simpler than before. Upgrading to Firefox 1.5.0.2 disabled keyconfig 20050908.2 because it's "incompatible". After two hours, I'm sorely missing all my shortkeys. Any idea if I can tweak some config file or where to find a "compatible" version?
Thanks! It should work by now, but you likely need to click Tools > Extensions > Find Updates. Blame the devs for not releasing a Release Candidate. Return to Extension/Theme Releases Who is onlineUsers browsing this forum: No registered users and 2 guests |
![]() |