diff --git a/TabletDriverGUI/WindowButtonMapping.xaml b/TabletDriverGUI/WindowButtonMapping.xaml
index e99202c..a7bbede 100644
--- a/TabletDriverGUI/WindowButtonMapping.xaml
+++ b/TabletDriverGUI/WindowButtonMapping.xaml
@@ -35,7 +35,7 @@
Padding="4"
FontWeight="Bold"
PreviewKeyDown="TextKeyboard_PreviewKeyDown"
- >CTRL+SHIFT+Z
+ />
@@ -48,6 +48,29 @@
+
+
+
+
+
+
+
+
+
+
+
0)
comboBoxMultimedia.SelectedIndex = 0;
- textKeyboard.Text = binding.Key;
+ textKeyboard.Text = "";
+ textApplication.Text = "";
textCustom.Text = binding.Key;
}
}
@@ -217,7 +226,8 @@ private void ComboBoxMultimedia_SelectionChanged(object sender, SelectionChanged
ButtonBinding binding = (ButtonBinding)comboBoxMultimedia.SelectedItem;
if (comboBoxMultimedia.SelectedIndex > 0)
comboBoxMouse.SelectedIndex = 0;
- textKeyboard.Text = binding.Key;
+ textKeyboard.Text = "";
+ textApplication.Text = "";
textCustom.Text = binding.Key;
}
}
@@ -278,6 +288,7 @@ private void TextKeyboard_PreviewKeyDown(object sender, KeyEventArgs e)
// Set textboxes
string keyText = string.Join("+", keys.ToArray());
textKeyboard.Text = keyText;
+ textApplication.Text = "";
textCustom.Text = keyText;
comboBoxMouse.SelectedIndex = 0;
@@ -291,6 +302,25 @@ private void Button_Click(object sender, RoutedEventArgs e)
}
+ //
+ // Browse...
+ //
+ private void ButtonBrowse_Click(object sender, RoutedEventArgs e)
+ {
+ OpenFileDialog openFileDialog = new OpenFileDialog();
+ if (openFileDialog.ShowDialog() == true)
+ {
+ string fileName = openFileDialog.FileName;
+
+ if (comboBoxMultimedia.SelectedIndex > 0)
+ comboBoxMouse.SelectedIndex = 0;
+ textKeyboard.Text = "";
+ textApplication.Text = fileName;
+ textCustom.Text = $"{applicationCommand}{fileName}";
+ }
+ }
+
+
//
// Set
//
diff --git a/TabletDriverService/TabletDriverService.vcxproj b/TabletDriverService/TabletDriverService.vcxproj
index dec95d3..e3d4f9c 100644
--- a/TabletDriverService/TabletDriverService.vcxproj
+++ b/TabletDriverService/TabletDriverService.vcxproj
@@ -23,7 +23,7 @@
{3101CEC2-8F39-45FD-943B-79A488AD05EA}
Win32Proj
TabletDriverService
- 10.0.17763.0
+ 10.0.18362.0