16

I am using a Microsoft Natural® Ergonomic Keyboard 4000 on my Ubuntu 14.04 x64 and since I upgraded from Ubuntu 13.10 I noticed that the Calculator application does not get focus when started from the keyboard shortcut. It gets started like the last (NOT previous) application in the stack.

It gets focus when opened from dash.

I don't know what configuration output to provide. Any suggestions?

Alex Burdusel
  • 1,462
  • 2
  • 17
  • 24
  • I fixed this using key binding in compiz http://askubuntu.com/questions/321525/how-to-connect-a-calculator-button-on-a-keyboard-with-a-call-of-a-calculator – user16832 Jul 07 '14 at 07:21

1 Answers1

14

What you have discovered seems to be a bug related to some applications launched from (unity)*-settings-daemon. The bug is reported here.

However, it exist multiple easy workarounds to this annoying issue;

The one I will suggest, is to define your own keyboard shortcut, and reassign the calculator button.

keyboard shortcut


Another solution is to:

Use eg. CompizConfig Setting Manager and set the Focus Prevention Level option to off. The option is found under General Options on the tab named Focus & Raise Behaviour.

Anders F. U. Kiær
  • 2,171
  • 1
  • 17
  • 29
  • today's upgrade seems to have fixed it. – Alex Burdusel Apr 30 '14 at 18:38
  • Hi, the proposed answer is not what I expected. I want to have focus prevention and have my calculator app to gain focus when launched from keyboard. Is that possible? – razor7 May 08 '14 at 22:39
  • You can have focus prevention with suggestion one. – Anders F. U. Kiær May 09 '14 at 00:39
  • 1
    Well, I my particular case, If I create a custom shortcut using the calculator button on my keyboard, the calculator app doesn't show at all... – razor7 May 09 '14 at 02:22
  • 2
    The alternative solution (using CompizConfig) resolved the problem for me, as by adding a custom shortcut, the application did open on top of other apps, but didn't receive focus and thus still didn't receive immediate input. – Paul Lammertsma Aug 26 '14 at 14:44
  • 2
    After creating your own keyboard shortcut make sure to logout. When you log back in the shortcut will start working. – hansgoed Aug 29 '14 at 13:01
  • I don't have a "calc" button on my keyboard, but I always map `Super-C` to the calculator (via `System-Settings->Keyboard->Shortcuts->Launchers`), and this problem has been driving me batty. I disabled the built-in shortcut, added a `Custom Shortcut`, and now it works great, thanks (no log-out required; hopefully it still works when I do log out!). – Lambart Feb 11 '15 at 18:34