Posts

Showing posts with the label keyboard

Alt key gets ignored by Keyman Developer

Image
Clash Royale CLAN TAG #URR8PPP Alt key gets ignored by Keyman Developer I'm attempting to make a keyboard in Keyman Developer 9.0. But rules involving any of the Alt keys seem to get ignored and produce no output in the debugger. Here's my MCVE: this keyboard layout code is an attempt to modify the behavior of a single key, the Z key. store(&VERSION) '9.0' store(&NAME) 'Sandbox' begin Unicode > use(main) group(main) using keys + [SHIFT K_Z] > 'Shift! ' + [LALT K_Z] > 'Lalt! ' + [RALT K_Z] > 'Ralt! ' This compiles cleanly. Then typing Shift z in the debugger print Shift! as intended. Shift! But Alt z and Alt Gr z don't do anything. It's as if those rules get ignored. Same problem if I don't distinguish between left and right Alt keys and just use + [ALT K_Z] > 'Alt! ' How do I fix this? My physical keyboard has a European layout, more specifically for Denmark... though I don't think thi...

WPF: The toolbar is a keyboard trap

Image
Clash Royale CLAN TAG #URR8PPP WPF: The toolbar is a keyboard trap I have the following XAML code: <ToolBarTray DockPanel.Dock="Top"> <ToolBar VerticalAlignment="Top"> <ComboBox x:Name="ComboboxFontname" ToolTip="Auswahlliste um Schriftart festzulegen" ItemsSource="{x:Static Fonts.SystemFontFamilies}" SelectedIndex="0" Width="200" GotFocus="ComboBox_GotFocus" LostFocus="ComboBox_LostFocus"/> <ComboBox x:Name="ComboboxFontsize" ToolTip="Auswahlliste um Schriftgröße festzulegen" SelectedIndex="0" Width="45" GotFocus="ComboBox_GotFocus" LostFocus="ComboBox_LostFocus"> <ComboBoxItem Content="12"/> <ComboBoxItem Content="14"/> <ComboBoxItem Content="16"/> ...

How to have a android:background color and still retain the gray focus highlight for lists in Android?

Image
Clash Royale CLAN TAG #URR8PPP How to have a android:background color and still retain the gray focus highlight for lists in Android? I'm porting my app to Chrome OS and there are a few places in the app where arrow key navigation works, but the current focused element is not highlighted in any way. I've found that whenever I set a background color for an element like <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" ... android:background="@color/white" > ... </LinearLayout> then the default highlighting of the focused element will not show. Removing this will show the default background (which is not always the same as what I want). Also, in cases where I use a selector in a ListView, the background is in front of the intended highlighting drawable (which can be seen if the color is somewhat transparent). <?xml version="1.0...