![]() |
Re: [ANNOUNCE] Alpha release of Open Media Player
Quote:
Quote:
|
Re: [ANNOUNCE] Alpha release of Open Media Player
Quote:
Quote:
Open Contacts for example, input language can be switched *before* you've typed anything. And that is more logical than OMP's behaviour, where you have to type something, switch the language, then clear what you've typed, then type again. Not to say that a system-wide shortcut should not be overtaken by an application unless really needed. I don't see why OMP needs exactly ctrl-space for opening the "Now Playing" window. That one could be shift-space, shift-enter or ctrl-enter as well(or some other combo), without breaking language switching capability. Quote:
|
Re: [ANNOUNCE] Alpha release of Open Media Player
Quote:
Quote:
{Ctrl,Shift}+Enter are used for menus. I prefer most shortcuts with Ctrl rather than Shift, so I'd rather have Ctrl+P than Shift+Space. If there are no hard objections or better ideas, I think I can change all instances of Ctrl+Space to Ctrl+P (see http://wiki.maemo.org/Open_Media_Player#Controls for the list of affected contexts) and assign Ctrl+Space to toggle input language in most windows, of course provided I can find out how to do that (it doesn't look like it's as simple as calling something over D-Bus, any hints?). But doesn't that sound like a job for Qt, not individual applications? |
Re: [ANNOUNCE] Alpha release of Open Media Player
Quote:
Try it: 1. open google in microb 2. click outside of the search field, 3. type something (so microb address field to appear and you to check your current language). 4. click somewhere on the page (so address field to disappear). 5. Press ctrl-space 6. go to 3 Quote:
Code:
connect(new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Space), this), SIGNAL(activated()), this, SLOT(openWindow())); ctrl-space is a system-wide shortcut handled by hildon-input-method framework (if I am not mistaken) which switches the currently active input language for the hardware keyboard. The above code makes that sequence be handled by the application(or rather NowPlayingIndicator) itself *when* an object of class NowPlayingIndicator (or its parent) is active(visible). IIUC. So, HIM does not have any chance to switch the language. From Qt help: http://qt-project.org/doc/qt-4.7/qshortcut.html Code:
A shortcut is "listened for" by Qt's event loop when the shortcut's parent widget is receiving events. Quote:
Quote:
Quote:
Quote:
|
Re: [ANNOUNCE] Alpha release of Open Media Player
I understand what QShortcut does and what you're saying, but until now (the example with MicroB) I thought that you have based your claims on not enough apps. I'll install ukeyboard and try some other things tomorrow if I can find a free moment. It would be nice if in the meantime also somebody else could share their observations.
Below are some applications that I've checked, I can't see any interesting pattern here: :(
|
Re: [ANNOUNCE] Alpha release of Open Media Player
You should try with default mediaplayer, it only starts and stops playing: The ctrl button is fully ignored as normal space does the same!
|
Re: [ANNOUNCE] Alpha release of Open Media Player
Quote:
|
Re: [ANNOUNCE] Alpha release of Open Media Player
Actually it is not pointed to anyone specific but you said that ctrl-space shouldn't be overriden by an application. Well, a good point, seems quite a good guideline and common sense. But, it's a non-existing real requirement as even the default player has not that behaviour and if you look at Gidzzz list, there are even more default application that dont follow that rule.
You, FMG, presented it as an Already existint rule but that's not the case, that rule doesn't exist. Though I agree it should be a rule, even if not all application allow that. It just is more logical; what if a application on desktop overrides all system shortcuts Like alt-tab, how should one switch an application? So in short: That isnt an existing rule/guideline, but I agree it should be one |
Re: [ANNOUNCE] Alpha release of Open Media Player
Quote:
I wonder why is that difference (ukeyboard?). Even if it is because of ukeyboard, I think we should treat it(the shortcut) as a stock system rule, because ukeyboard is the only way I know for non-stock languages to be supported. |
Re: [ANNOUNCE] Alpha release of Open Media Player
Also on my second N900 that shortcut doesn't work. None of these have Ukeyboard installed. So I suppose UKeyboard somehow fixes that
|
All times are GMT. The time now is 16:31. |
vBulletin® Version 3.8.8